main nav and internationalization

Permalink Browser Info Environment
Hi Looking for a bit of help on this issue.

I've installed the internationalization add on for my site. each language is at the second level of the site map. So I need the main drop down menu to start at the second level. Is there anyway I can do this with the featurist main nav?
Thanks!

Type: Discussion
Status: New
markella
View Replies:
c5mix replied on at Permalink Reply
c5mix
Sorry for the delayed response. The best way will be to change out the hardcoded autonav template in the theme and replace it with an area you can add an autonav block to and set according to your needs. You will need to change a couple of lines in the header.php file (located at theme_featurist/themes/featurist/elements/header.php) to do this.
Replace this:
<?php
$bt = BlockType::getByHandle('autonav');
$bt->controller->displayPages = 'top';
$bt->controller->orderBy = 'display_asc';                    
$bt->controller->displaySubPages = 'all'; 
$bt->controller->displaySubPageLevels = 'custom';
$bt->controller->displaySubPageLevelsNum = '1';                   
$bt->render('templates/featurist_main_nav');
?>

With this:
<?php 
$a = new Area('Header Nav');
$a->display($c);
?>

Then simply add an Autonav block to that new Header Nav area and configure accordingly. Then make sure you use the Featurist Main Nav custom template.
markella replied on at Permalink Reply
markella
hallelujah! worked like a charm!

I'm a designer not too strong in php. So I would have raked my brain on this for many hours!

Your help was very much appreciated!
c5mix replied on at Permalink Reply
c5mix
You're welcome!
markella replied on at Permalink Reply
markella
What about the featurist slideshow. I also need it in two languages for internalization.
I've tried creating a new page type home_fr, copy of the home.php .
but what code would I replace or use so that I can use the slideshow as a block content.

Thanks!
c5mix replied on at Permalink Reply
c5mix
Yeah, you really can't easily modify it to be a block. But in your home_fr.php file look for this code:
$slideshowName = 'Slideshow';

And change it to this:
$slideshowName = 'Slideshow FR';

Then just make a new stack called Slideshow FR and add your content there.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

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

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.