Hi,
I made a small function, to generate a navigation link for menus:
The call is simple:
I can't figure out to suppress the link generation, if a page is unpuplished. I tried without success
Any ideas?
I made a small function, to generate a navigation link for menus:
- Code: Select all
<cms:func 'link' url='' text=''>
<cms:if url && text >
<li><a href="<cms:link masterpage=url />" <cms:if k_template_name=url>class="active"</cms:if> ><cms:show text /></li>
</cms:if>
</cms:func>
The call is simple:
- Code: Select all
<cms:call value='link' url='news.php' text='News'/>
I can't figure out to suppress the link generation, if a page is unpuplished. I tried without success
- Code: Select all
<cms:get_field 'k_page_date' masterpage=url />
Any ideas?