$_sections
variable
- $_sections
applicable sections
- html
description
Place this variable at the location in the body element where you want sections ul element to appear.
notes
This variable is most often used as a horizontal or vertical navigation bar for sections within a site. For small sites -- those that only use top-level sections and no subsections -- this variable alone provides access to all pages.
For websites with subsections, this variable is best used as a horizontal navigation bar for top-level sections, and used in conjunction with the $_navigation
variable (in a sidebar) to provide subsection navigation. This is what you are experiencing on the Vine Type website right now.
- The sections ul element will contain a class="section" attribute
- The sections ul element will contain one or more li elements
- All section li elements except one will contain a class="section" attribute
- The section li element that is the top-level section of the current web page will contain a class="sectionactive" attribute
- When only one section li element is present, it will contain a class="sectionactive" attribute
- All section li elements (exception below) will contain an a (anchor) element with a src attribute pointing to that particular section and contain the name of the section
- If the active web page is the actual top-level section itself then the li element will contain only the name of the section