Posted By

ryarwood on 01/30/12


Tagged

category ExpressionEngine channel


Versions (?)

EE Category Channel Example


 / Published in: PHP
 

  1. {exp:channel:categories show_empty="yes" channel="blog" style="linear"}
  2. <li>{if last_segment == 'fr'}<a href="{path='blog/category'}/fr/">{category_name}</a>{if:else}<a href="{path='blog/category'}">{category_name}</a>{/if}</li>
  3. {/exp:channel:categories}

Report this snippet  

You need to login to post a comment.