Hi I have a site that uses i18 module and is important to create paths with names as en/panelname
but when i append a / character in the path name, the panel created no longer works.
I will appreciate your help, i am running 4.7.3.
Jose
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | i18n_panels.patch | 576 bytes | mathieu |
Comments
Comment #1
merlinofchaos commentedSo I suppose saying to enter your urls as:
en/panelname
And not
en/panelname/
isn't what you're looking for?
Comment #2
andespeople commentedThanks for responding, the link below takes you to my panels in which you get to see the panel en/panelname/ created:
Admin panels
but when you go to the actual page where it should be seen, the page not found message shows up:
Panel: en/panelname
I am using "panelname" as the path to the primary link "Home" in the frontpage of my site. When you switch between languages, i18 automatically appends en/ or es/ to links, so it is supposed to take it to the panel en/panelname, or that is what i thought.
Hope it is a little more clear,
Jose.
Comment #3
merlinofchaos commentedThanks for the demo, now I understand what's really going on.
The 'en' and 'es' isn't really part of the URL, I think i18n is making it part of the base_url (i.e, what Drupal thinks is the site name).
So I set the URL to just 'panelname' and that works. Which leaves you in the position of being unable to easily create multiple panels for each language. I'm not sure how i18n wants to deal with that in cases like this. It probably has no idea how to do that, but I am not sure. I've never really dealt with i18n issues.
Comment #4
andespeople commentedForgive my lack of technical knowledge, but i thought this was a panels module issue since i got nodes working fine with en/ type of sufixes in the path.
Comment #5
merlinofchaos commentedNo worries. This still leaves an issue with how to translate panels, which I will leave active in the hopes that someone who knows i18n can discuss solutions.
Comment #6
dreamlusion commentedPanels is a container so one logic path says that its up to the contained nodes/block/etc to have translations.
Using the following panels_content_node in node.inc, you can force the Panels module to display a nodes translation if available
Comment #7
mathieu commentedsubscribing
Comment #8
mathieu commentedHere's a patch, made against panels 5.x-2.0-alpha7, based on the code sent by Jorgito_el_loco. This is clearly not optimal, but it's a starting point...
Comment #9
omar commentedAfter applying this patch and editing a node all of the english items in my primary links menu were duplicated. The french menu items were not duplicated and thus the primary links still appear correctly. Note that I was working in the english interface when this took place.
Comment #10
omar commented... I should note that to fix the links (manually) one has to disable and re-enable each link.
Note also to be able to "switch languages" using panels, *I think* one will have to use a single language for all link paths/aliases. :-(
e.g.
example.org/en/myalias and example.org/fr/myalias
instead of
example.org/en/myalias and example.org/fr/monalias.
Otherwise *I think* that one would have to create additional aliases manually map requests from one alias language to the other as the actual menu item for the panel can only have one entry.
Comment #11
merlinofchaos commentedI've committed simple support to translate nodes via translation module. No idea if this works as I don't have translation.module installed! Let's see what else we can do in the next version.
Leaving this active as I'm sure there needs to be more.
Comment #12
mathieu commentedThere was a check in the patch to make sure that $nid wasn't null in case the translation doesn't exists.. which got lost on the way.
In panels/content_types/node.inc, line 38, here is a new version that fixes that :
Thanks,
Comment #13
merlinofchaos commentedChecked in a fix. Thanks!
Comment #14
(not verified) commentedComment #15
wundo commentedIt seems to be happening again with Drupal 6 and Panels 6.x-2.0-alpha2, anyone confirms?
Comment #16
s.daniel commentedYes this issue is still open. Language neutral nodes can be loaded in a pane nodes with language information don't display.
Nodes with language information can be added as a pane but they won't display.
Comment #17
merlinofchaos commentedPanels 2 is no longer available and is unsupported. Marking all Panels 2 issues won't fix.