Hey Kevin,
Thanks for your reply. Here’s the code:
<nav>
<ul>
<li class="home{if !segment_1} active{/if}"><a href="/">Home</a></li>
<li{if segment_1 == "campers"} class="active"{/if}><a href="/campers">Campers</a></li>
{exp:channel:entries channel="pages" disable="categories|member_data|pagination" search:show_in_nav="Ja" search:nav_title="not IS_EMPTY" orderby="nav_order" search:page_uri="not IS_EMPTY" order="asc" dynamic="no"}
<li{if segment_1 == url_title} class="active"{/if}><a href="http://{page_uri}">{nav_title}</a></li>
{/exp:channel:entries}
</ul>
</nav>
As you can see, this code serves up the main navigation. I’m using the pages module and a few custom fields (checkbox show_in_nav, text nav_title, text nav_order). It’s working pretty well, but I want the nav_order field to be optional, so that the client isn’t forced to input a number for every page. Which is why I want the empty fields to show up first and any numbered fields after that.
I’m also not sure if this is even a decent way to handle navigation, so any advice is appreciated. I think the Structure extension might be great for pages and navigation, but I’m trying to see how far I can go without adding another payed extension to the site.