Skip to content

Instantly share code, notes, and snippets.

@conraddecker
Created December 21, 2011 16:14
Show Gist options
  • Select an option

  • Save conraddecker/1506585 to your computer and use it in GitHub Desktop.

Select an option

Save conraddecker/1506585 to your computer and use it in GitHub Desktop.
<!-- This conditional handles photo galleries in the nav; They will default to showing the first gallery, as each gallery is desired to have it's own page -->
{elseif $node.object.class_identifier|eq('photo_gallery_page')}
{def $gallery = $node.children.0}
<a href={$gallery.url_alias|ezurl}{section show=$accesskey} accesskey="{$accesskey}"{/section}{section show=$class} class="{$class}"{/section}{if eq(true,$gallery.data_map.omniture_id.has_content)} name="omni_{$gallery.data_map.omniture_id.content}_{$omniture_part
{else}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment