Skip to content

Instantly share code, notes, and snippets.

@ryarwood
Created November 14, 2012 02:15
Show Gist options
  • Save ryarwood/4069851 to your computer and use it in GitHub Desktop.
Save ryarwood/4069851 to your computer and use it in GitHub Desktop.
EE Category Channel Example
{exp:channel:categories show_empty="yes" channel="blog" style="linear"}
<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>
{/exp:channel:categories}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment