Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi,
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?
Please try -
Code: Select all
<cms:get_field 'k_publish_date' masterpage=url />

Hope this helps.
@kk Great, this works. The field wasn't listed with <cms:dump_all />

btw The User hercules97 seems to be pwned: viewtopic.php?f=4&t=12487&p=34951
btw The User hercules97 seems to be pwned:

Thanks for the heads-up :) Have taken care of it.
4 posts Page 1 of 1
cron