dynamic template by menu item

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pistols
New Member
New Member
Posts: 8
Joined: Tue Jun 17, 2008 8:26 am

dynamic template by menu item

Post by pistols »

I am building a multi lingua website and i need a little bit of help.
My plan is to change the content_blocks of each language in the template dynamicaly...

I want to use only one template
which will have inside codes like this

...

....

{global_content name='footer'}



.....

Now i need to write to the footer global content "footer" something like this

    if (rootTitle_of_this_menu_tree  == "czech") then global_content_name = 'footer_cz';
    if (rootTitle_of_this_menu_tree  == "english") then global_content_name = 'footer_en';
    if (rootTitle_of_this_menu_tree  == "russian") then global_content_name = 'footer_ru';



The web-content structure look like this
1 czech
1.1 blablbalba
1.2 blablbalba
1.3 blablbalba

2 english
2.1 fgsdglkjsdfg
2.2 fgsdglkjsdfg
2.3 fgsdglkjsdfg

3 russian
3.1 fgsdglkjsdfg
3.2 fgsdglkjsdfg
3.3 fgsdglkjsdfg

The problem is that i cannot find out how to write the footer global content. I did not find any property that could revial to me the root node name

can you please help me out...

i have read the workaround for the multi language websites.. but i think this is a good solution also

Greets
Nikolas
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: dynamic template by menu item

Post by Dr.CSS »

There is some post about root_parent_alias that may help you, try search...
Post Reply

Return to “Modules/Add-Ons”