-
Book Overview & Buying
-
Table Of Contents
concrete5: Beginner's Guide - Second Edition - Second Edition
In this chapter we'll have a deeper look at the autonav block you use to create dynamic navigation. It basically pulls a selection of pages from the sitemap and prints a hierarchical HTML structure, which represents the navigation.
We're going to start with information about the use of the block. Afterwards we're going to create a series of templates for the block in order to change the look and the behavior of the navigation to explain the process of building a custom navigation in concrete5.
We'll cover the following topics in this chapter:
An introduction about the autonav block, which is mostly used to build a site's navigation
An example showing you how to add pictures to the navigation
Another example that uses CSS3 to add a hover effect
An example that adds a drop-down navigation using a jQuery plugin
One last example to show how you can add navigation to improve the usability for visitors using a mobile phone
Change the font size
Change margin width
Change background colour