Converting HTML/CSS to C5 - stuck with autonav
Permalink
Hello,
I would like to covert current HTML/CSS website in to Concrete5.
I quite comfortable with HTML but totally new to C5.
Unfortunately I stuck with converting a menu to C5.
What I have done so far is that I have included this autonav section in the header.php file:
<?php
$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'top';
$nav->controller->displaySubPages = 'none';
$nav->render('templates/header_menu');
?>
I also created view.php and view.css (with my menu styles) in blocks\autonav\templates\id\
My problem is that I do not know in to which file should I paste my menu <ul> <li> html section. Should it go to templates/header_menu file (does it need to be php file)?
Please help
Thanks
I would like to covert current HTML/CSS website in to Concrete5.
I quite comfortable with HTML but totally new to C5.
Unfortunately I stuck with converting a menu to C5.
What I have done so far is that I have included this autonav section in the header.php file:
<?php
$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'top';
$nav->controller->displaySubPages = 'none';
$nav->render('templates/header_menu');
?>
I also created view.php and view.css (with my menu styles) in blocks\autonav\templates\id\
My problem is that I do not know in to which file should I paste my menu <ul> <li> html section. Should it go to templates/header_menu file (does it need to be php file)?
Please help
Thanks
The php include code at the top of the default.php file should render both the header and footer from the Elements directory.
If you go the concrete/themes and have a look at how the other themes have been setup. This will give you a better idea.