Hi, I'm wanting to not display links in the menu/nav for any unpublished pages.

My thoughts were to use a cms:if in header.html to only display those links for pages that are published. I've tried a few things but just can't work out what variables to use in the cms:if

Below is the relevant part of my header.html.

Code: Select all
<!-- /* Site Nav2 */ -->
<ul id="navigation" class="grid_9">
   <li><a href="<cms:link 'hire.php' />" <cms:if k_template_name=='hire.php'>class="current"</cms:if> ><br />Hire</a></li>
   <li><a href="<cms:link 'fencing.php' />" <cms:if k_template_name=='fencing.php'>class="current"</cms:if> ><br />Fencing</a></li>
   <li><a href="<cms:link 'landscaping.php' />" <cms:if k_template_name=='landscaping.php'>class="current"</cms:if> ><br />Landscaping</a></li>
   <li><a href="<cms:link 'handymen.php' />" <cms:if k_template_name=='handymen.php'>class="current"</cms:if> ><br />Handymen</a></li>
   <li><a href="<cms:link 'lawn.php' />" <cms:if k_template_name=='lawn.php'>class="current"</cms:if> ><br />Lawn Maintenance</a></li>
   <li><a href="<cms:link 'index.php' />" <cms:if k_template_name=='index.php'>class="current"</cms:if> ><br />Home</a></li>

Thanks, 8-)