Navigation in Vertigo when adding multiple languages

Permalink Browser Info Environment
Hi! I've been using Vertigo for our websitehttp://www.unamusic.com for a while now and it works really well (thanks!). Now I want to start using the multilanguage functionality and then I run into a problem with the navigation. I follow the instructions in then concrete guide for the auto-nav. My tree looks like this

Home
- Home swedish
- Home english

and below follows all the pages.

When using the auto-nav function I can check mark the option "show from second level" which makes the autonav show the Home swedish page when swedish is chosen and the Home englih page when choosing english.

However in vertigo now the menu to the left always shows both the swedish and english menues. It looks like this:

HOME
HOME SWEDISH
HOME ENGLISH

I think there must be a setting or something, and I've looked to see if you mention anything about this but haven't found anything. Thankful for any kind of guiding.

Best regards,

Ulf

Type: Pre-Sale
Status: In Progress
ulfn
View Replies:
formigo replied on at Permalink Reply
formigo
The auto-nav in this theme is 'hard-coded' in to the theme (not a block); there is no auto-nav options in this case.

However if you need to change the settings then you can do so in this file vertigo/themes/vertigo/elements/vertical-nav.php. You should see this:

<?php 
$autonav = BlockType::getByHandle('autonav');
$autonav->controller->orderBy = 'display_asc';
$autonav->controller->displayPages = 'top';
$autonav->controller->displaySubPages = 'all';
$autonav->controller->displaySubPageLevels = 'all';
$autonav->render('templates/vertical-nav');
?>

These options can be changed to reflect what the settings in the auto-nav provide. So for example you could change:

$autonav->controller->displayPages = 'top';

to:
$autonav->controller->displayPages = 'second_level';
ulfn replied on at Permalink Reply
ulfn
Thanks a lot! It worked like a charm! And thank you for such a fast response!

Best regards,

Ulf

concrete5 Environment Information

Maskinvaruöversikt:

Modellnamn: MacBook Pro
Modellidentifierare: MacBookPro8,1
Processornamn: Intel Core i7
Processorhastighet: 2,8 GHz
Antal processorer: 1
Totalt antal kärnor: 2
L2-cache (per kärna): 256 K
L3-cache: 4 MB
Minne: 8 GB
Boot ROM-version: MBP81.0047.B27
SMC-version (system): 1.68f99
Rörelsedetektor (Sudden Motion Sensor):
Status: Aktiverad

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/7.1.2 Safari/537.85.11

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.