Hello,
First, I’d like to express how frustrating my experience has been with ExpressionEngine Commercial. The learning curve is worse than Drupal and your documentation needs work. Therefore, the last few days of integration have been peculiar because I am use to CodeIgniter’s fantastic documentation.
Second, your static page management is weird by comparison of what else is out there. I do see that LG is writing a module and I hope this is also simplified for the user in v2.
Below is my understanding of how to dynamically create sub navigation through categories and pages. If somebody has a better method; by all means, point me in the right direction. This is really for others that are looking for something similar and will hopefully save them some time.
In reading this, I am assuming that you have already beaten your head against the wall a few times, drank some coffee, and found this:
Directions
1. Install the pages module
2. When creating the URI segments for pages, segment 1 of your URI is your parent; therefore, segment 2 is the child. When creating a child, be sure the parent segment matches. Also, the URL title should match the URI segment when publishing the page. Be sure to choose the correct template file you will be creating later on.
Example:
services
services/development
services/development/agile
3. Create categories under “Publish”. Be sure to match the category name with the parent URI segment
4. Create a sub template file and use the following code to render the sub navigation dynamically:
{exp:weblog:categories weblog="section" dynamic="off"}
{if category_name == segment_1}
<ul id="side_nav">
{exp:weblog:entries weblog="section" dynamic="off" show_pages="only" category="{category_id}" orderby="menu_level" sort="asc"}
<li class="side_nav_{if segment_2 == url_title}on{if:else}off{/if}"><a href="{page_url}">{title}</a></li>
{/exp:weblog:entries}
</ul>
{/if}
{/exp:weblog:categories}
The example above is for a second level side navigation. You can change the segment numbers, create child categories through publish, create pages with the URI as described in directions in order to get a level 3+ navigation dynamically.
Thank you.
