How do i link the navigation
PermalinkC5 is greate and i have my first theme up and running. What i just dont understand is how i actualy link the navigation bar or make it editable?
Best Regards,
Cedric
<li><a href="<?=$this->getThemePath()?>/default.php" class="active"><span>Hem</span></a></li> <li><a href="<?=$this->getThemePath()?>/about.php"><span> Om oss</span></a></li> <li><a href="services.html"><span>Tjänster</span></a></li> <li><a href="referenser.html"><span>Referenser</span></a></li> <li><a href="contact.html"><span> Kontakt</span></a></li>
Best Regards,
Regards,
you can add a custom template with custom css.
http://www.concrete5.org/documentation/general-topics/custom-templa...
<?php $a = new Area('Main Content 2'); $a->display($c); ?>
How guys have you made your menus in the src code?
<div id="topnav"> <ul> <?php $a = new Area('Header Nav'); $a->display($c); $a->setBlockLimit(1); ?> </ul> </div>
and also with out the <ul> like this:
<div class="main-nav-holder"> <?php $headernav = new Area('Header_Nav'); $headernav->display($c); ?> </div>
<?php $a = new Area('Header Nav'); $a->display($c); $a->setBlockLimit(1); ?>
Check this image outhttp://imageshack.us/photo/my-images/40/39052942.jpg/...
You se wich is original html and C5.
Regards,
Should be .nav, depending on the template or not.
However the best you should do is find you autonav block folder in concrete folder.
Copy into blocks folder at the upper level making you block override the core one.
In the view of you auto-nav change the class of the ul to suit your needs.
You have a class available to you .nav-selected for the active links.
But you can change all of that if needed.
If you need a template let me know an I will give you one!
Have a nice one !
Regards,
Concrete5 uses this .css class to style the current page.
li.nav-selected a
This will put the "tab" on the current page.
http://imageshack.us/photo/my-images/217/77316298.jpg/...
Best Regards,
Unzip it and copy the autonav folder into your blocks folder.
Now in your edit mode click in autonav block choose templates and pick my template.
In your favorite text editor open the file view.css located in autonav/templates/my template/view.css
Add your css there.
Remove all css that you may have inserted using the designer block you dont need it.
Now i have done it. The template is in blocks/autonav/templates/my template/ and i have change the view.css but dont i need to move the view.css to another directory? Dossent seem like it reading the .css file.
Best Regards,
Make sure that your css that you have implemented there is deleted.
Alternatively use firebug to see if there are rules overriding you view.css
Best Regards,
If you coded your theme correctly there should be an editable where you want your navigation to go. Click it, add a 'auto-nav' block and you should be on your way.
Can you post the code you used in your template?