Linking to different pages (same page different language)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Sofia1

Linking to different pages (same page different language)

Post by Sofia1 »

Hey Guys,
I was wondering whether the following was possible...

I have a page that is called Contact ...

cmsmadesimple/index.php?page=Contact

and I want a link on the main template to essentially convert the page into French for which I have a page template and page called

cmsmadesimple/index.php?page=FR-Contact


Obviously the following will return the current page

I have tried --> notice the "FR-" before the {pageid} but that did not work.

Do you guys have any suggestions?
Thanks for your help. Phil


PS: I've tried installing the multi-language pack (after having already installed cmsms but it did not work, so I gave up and tried my luck with this).
alby

Re: Linking to different pages (same page different language)

Post by alby »

Sofia1 wrote: Hey Guys,
I was wondering whether the following was possible...

I have a page that is called Contact ...

cmsmadesimple/index.php?page=Contact

and I want a link on the main template to essentially convert the page into French for which I have a page template and page called

cmsmadesimple/index.php?page=FR-Contact


Obviously the following will return the current page

I have tried --> notice the "FR-" before the {pageid} but that did not work.

Do you guys have any suggestions?
Thanks for your help. Phil


PS: I've tried installing the multi-language pack (after having already installed cmsms but it did not work, so I gave up and tried my luck with this).
See here

Alby
cyberman

Re: Linking to different pages (same page different language)

Post by cyberman »

Sofia1 wrote: I have tried
Have you tried something like this

Code: Select all

<a href="{root_url}/index.php?page=FR-{$page_alias}">
Sofia1

Re: Linking to different pages (same page different language)

Post by Sofia1 »

I actually realised earlier that FR-{$page_alias} will return FR-FR-Contact and FR-EN-Contact since those are the two page alias.

In the process of upgrading the cms and then upgrading to mle.  Hope that goes well. Thanks for your help. P
Locked

Return to “Layout and Design (CSS & HTML)”