Creating a menu with only certain pages
Permalink Browser Info Environment
I want to create a menu, separate from the main nav that only shows certain pages. I cannot use the "beneath a certain page" option as some are under the main "Home" page in the site and some are sub-pages of other pages in the sitemap.
Any idea on how to do this?
Any idea on how to do this?
Type: | Discussion |
---|---|
Status: | New |
There is currently no way that I am aware of that will do that. You can use a content area to add a list of the links that you want, and then style it yourself in your themes css.
I achieved this by creating an attribute called "home_nav" (you can call it whatever) and assigning it to the pages I wanted included in my nav. Then I crated a custom template for the Ukao Menu block and in the view.php file added:
if ($_c->getCollectionAttributeValue('home_nav')) {
}
(see attached)
Then of course applying the template to the block.
if ($_c->getCollectionAttributeValue('home_nav')) {
}
(see attached)
Then of course applying the template to the block.