Skip to content

Instantly share code, notes, and snippets.

Created November 28, 2013 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7689336 to your computer and use it in GitHub Desktop.
Save anonymous/7689336 to your computer and use it in GitHub Desktop.
EE Switch within Matrix tag pair not working
<div class="thumbnailWrap">
{exp:channel:entries channel='profile-entry' disable="member_data|pagination|categories" orderby="surname" sort="asc" dynamic="no"}
{services_new search:parent="{segment_3}"}
<a href="{site_url}our-people/{url_title}" class="{switch="col4 firstfour firstthree firsttwo|col4|col4 firsttwo|col4 firstthree|col4 firstfour firsttwo|col4|col4 firstthree firsttwo|col4|col4 firstfour firsttwo|col4 firstthree|col4 firsttwo|col4"}">
<img src="{profile-portrait}" alt="{title} Profile Picture" width="100%" />
<h3>{title}</h3>
<h3 class="title">{profile-position}</h3>
</a>
<div class="{switch="|clearFixTwo|clearFixThree|clearFixTwo||clearFixTwo||clearFixTwo|clearFixThree|clearFixTwo||clearFixFour"}"></div>
<div class="{switch="|||clearFixFour||clearFixThree||clearFixFour||||clearFixThree"}"></div>
<div class="{switch="|||||||||||clearFixTwo"}"></div>
{/services_new}
{/exp:channel:entries}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment