Different main menus for different languages
Permalink
Hey everyone!
Ihave a problem I can't quite get my head around - maybe some more experience with c5 would help finding the solution... So maybe some of you could help me out with where to look.
What I am trying to do:
I have a website with two parts, German and English.
"domain.tld/en/about_us/company_history"
I have a dropdown menu.
On every page, I thus need all the subpages of that language and their subpages displayed (i.e. about_us/company_history and so on), but not the language itself, and also not the home page, I'll handle that elsewhere (so I have them excluded from Nav).
What I would have thought should do the trick (in my theme's "default.php"):
But that displays only the pages of the next level, not their subpages (so they can't drop down).
If I change one line to
I get the subpages of the other language displayed as well.
I assume I'm missing something here. Can anyone here spot the error and help me?
Many thanks!
Per
Ihave a problem I can't quite get my head around - maybe some more experience with c5 would help finding the solution... So maybe some of you could help me out with where to look.
What I am trying to do:
I have a website with two parts, German and English.
"domain.tld/en/about_us/company_history"
I have a dropdown menu.
On every page, I thus need all the subpages of that language and their subpages displayed (i.e. about_us/company_history and so on), but not the language itself, and also not the home page, I'll handle that elsewhere (so I have them excluded from Nav).
What I would have thought should do the trick (in my theme's "default.php"):
$bt_main =BlockType::getByHandle('autonav'); $bt_main->controller->displayPages = 'top'; $bt_main->controller->orderBy ='display_asc'; $bt_main->controller->displaySubPages ='relevant'; $bt_main->controller->displaySubPageLevels ='all'; $bt_main->render('templates/dropdown/view');
But that displays only the pages of the next level, not their subpages (so they can't drop down).
If I change one line to
$bt_main->controller->displaySubPages ='all';
I get the subpages of the other language displayed as well.
I assume I'm missing something here. Can anyone here spot the error and help me?
Many thanks!
Per
http://www.concrete5.org/documentation/how-tos/building-sites-in-mu...