Sub-Categories?

2 views
Skip to first unread message

kjemperud

unread,
Nov 3, 2009, 7:08:38 PM11/3/09
to Pixie
Is it at all possible to add sub-categories in the navigation system?

Any help or answer is highly appriciated!

Christopher Babione

unread,
Nov 13, 2009, 8:10:10 PM11/13/09
to Pixie
My finding is that it depends on what you are looking for. There is a
"dynamic_nav" block that is available out of the box for "Dynamic"
page types. I have also created custom blocks on my site that list
the Top 5 articles in my blog categories on my main pages and sub
pages using the RSS feed of my site to build the sub menu. With a
little PHP coding experience, you would be amazed at what you can do
with Pixie to customize it with minimal effort.

Scott

unread,
Nov 14, 2009, 4:13:52 PM11/14/09
to Pixie
@kjemperud

I posted this little snippet of info earlier this evening:

One very simple way to create your own navigation is to hard code
it into the root index.php file. On line 189 replace:

<div id="navigation">
<?php build_navigation(); ?>
</div>

with

<div id="navigation">
<li id="nav_home"><a href="/home/" title="Home">Home</li>
<li id="nav_blog"><a href="/blog/" title="Blog">Blog</li>
<li id="nav_google"><a href="http://www.google.co.uk"
title="Google">Google</li>
</div>

etc. I have done this a number of times and used CSS to indicate which
nav section I am on (e.g. .s_home #nav_home { background: red; })

You could use this methid to create multi-levels of navigation with
nested <ul>'s.

As Christopher suggests you can also use the blocks as a sort of sub
navigation - you can see this in action on any dynamic page with the
dynamic_nav block added. Investigate the /admin/blocks/
block_dynamic_nav.php file to see how this works.

Scott
Reply all
Reply to author
Forward
0 new messages