[SOLVED] how to build a welcome site linking to 2 sites

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Elke
Forum Members
Forum Members
Posts: 30
Joined: Thu Oct 14, 2010 9:37 am

[SOLVED] how to build a welcome site linking to 2 sites

Post by Elke »

Hi there

I use CMSMS 1.9.3 and I want to build a website with the following structure:
1. Home ("splash page"): Welcome words and links to either "cat breeding" in German, "cat breeding" in English, "dog breeding" in German, "dog breeding" in English
2. Dog breeding German
3. Dog breeding English
4. Cat breeding German
5. Cat breeding English

"Home" will look different from the other sites. Dogs German and English can use the same template and CSS, same with Cats.

I can build those pages using different templates - no problem. So the look is fine. But my problem is the navigation. All navigation points appear on all pages. I tried the tag "start_item" in {menu} but then it shows only the sibblings of the start item and not all the other items on the same level. I am for sure not the first person building such a site, but right now I do not see the solution. I searched the forums and the handbook.
I am not a programmer so please no complex programming solutions.

Thank you for your help!
Elke
Last edited by Elke on Wed Feb 16, 2011 7:13 am, edited 1 time in total.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: how to build a welcome site linking to 2 sites in 2 lang

Post by frankmanl »

Hi Elke,
You may use includeprefix="" in your call to the menu items. (see also the info page/module help on the menu manager).
Give your pages an alias starting with a prefix, e.g. g-dog, e-dog, g-cat and e-cat.
Make 2 templates that are identical except for the call to the menu.
In the german template you call the menu as:
{menu ... includeprefix="g-" ...}
In the english template you call it as:
{menu ... includeprefix="e-" ...}

It is important that you give all pages aliases a prefix! So you have to add that manually.

Frank
Elke
Forum Members
Forum Members
Posts: 30
Joined: Thu Oct 14, 2010 9:37 am

Re: how to build a welcome site linking to 2 sites in 2 lang

Post by Elke »

Thanks Frank!

Now that I read the module help thouroughly, I found this solution, which is easier as I do not have to give a page-alias to every page:

{menu show_root_siblings="1" start_element="2.2.1"}

I was probably too tired yesterday evening... thanks so much!
Post Reply

Return to “Modules/Add-Ons”