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
dynamic template by menu item
Re: dynamic template by menu item
There is some post about root_parent_alias that may help you, try search...