Please, need help...really lost with Internationalization add-on

Permalink
Hi,

Even after watching the video and reading through forum posts, i am still not able to add multiple languages to my C5 site.

I think i understood the workflow that needs to be done correctly, but my problem is that my menu navigation shows all links created.

I'll try to explain. Besides the undeletable Home link, i created About-English with one page below it called English-subpage.
Also i made About-Italian and Italian-Subpage.

But when viewing the page in browser, my menu navigation shows all four created links + Home link.

I use hard-coded auto-nav with these options:
<?php
               $nav = BlockType::getByHandle('autonav');
               $nav->controller->orderBy = 'display_asc';
               $nav->controller->displayPages = 'top';
               $nav->controller->displaySubPages = 'all';
               $nav->controller->displaySubPageLevels = 'custom';
               $nav->controller->displaySubPageLevelsNum = 1;
               $nav->render('view');
               ?>


Please guys, any help will be really appreciated!

Thanks,

Mirko

Madebym
 
pmarques replied on at Permalink Reply
pmarques
Hello,

Try changing the line
$nav->controller->displayPages = 'top';


to
$nav->controller->displayPages = 'second_level';
Madebym replied on at Permalink Reply
Madebym
Thanks for the reply.

Unfortunately, after changing to second_level i get no navigation at all.