Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Navigation

Kevin Ottley edited this page Apr 11, 2014 · 3 revisions

Prev | Next

/site/_navigation.php

Things to Consider

  • Navigation encompasses the category menu and links to custom pages (brooklyn theme)
  • In the admin panel you can specify where the custom page links are displayed
    • Top
    • Bottom (where links to the site map and privacy policy traditionally are)
    • Blended into the Category Menu

The two most important pieces of code on this page are the following:

$this->MenuTree
CustomPage::model()->toptabs()->findall()

The first is the category menu object. This is what you would use to create your menu however you like. The brooklyn theme uses an extension which is based on Yii's CMenu widget.

The second is the one that finds all the tabs selected to be displayed at the top. The widget offers the ability to include CSS class and id declarations that allow for easy styling through stylesheets.

Clone this wiki locally