Page 1 of 1

Linking to different pages (same page different language)

Posted: Tue Sep 11, 2007 8:27 am
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).

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

Posted: Tue Sep 11, 2007 9:08 am
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

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

Posted: Tue Sep 11, 2007 4:49 pm
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}">

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

Posted: Tue Sep 11, 2007 5:25 pm
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