Skip to content

Instantly share code, notes, and snippets.

@ivuorinen
Created January 20, 2011 09:49
Show Gist options
  • Save ivuorinen/787664 to your computer and use it in GitHub Desktop.
Save ivuorinen/787664 to your computer and use it in GitHub Desktop.
ee-titletag
{if segment_1}
{if segment_1 == 'archive'}
{segment_3}/{segment_2} — Arkistot —
{if:elseif segment_1 == 'about'}
Tietoja —
{if:elseif segment_1 == 'categories'}
{exp:query sql="SELECT cat_name FROM exp_categories WHERE cat_url_title = '{segment_3}'"}{cat_name}{/exp:query} — Kategoria —
{if:elseif segment_1 == 'notebook' OR segment_1 == 'photos' OR segment_1 == 'links' OR segment_1 == 'videos' OR segment_1 == 'quotes'}
{if segment_2}{exp:channel:entries limit="1" channel='{segment_1}'}{title}{/exp:channel:entries} —{/if}
{exp:channel:entries limit="1" channel='{segment_1}'}{channel}{/exp:channel:entries} —
{if:else}
{exp:channel:entries limit="1"}
{title} — {channel_title} —
{/exp:channel:entries}
{/if}
{/if} antiprocess.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment