I’m not sure if this is related to parsing order or not, and if there is a way around it.
My code is
{exp:channel:entries channel="employees"}
{if yard == "Fayetteville"}
<div class="grid_3 employee {switch='abr-alpha ||abr-omega'}">
<div class="abr-block">
{employee_photo}
<div class="module-title">
<h2 class="title">{title}</h2>
</div>
<span><em>{position}
{yard}</em></span>
<ul class="list-type-none">
<li>P: {phone1}</li>
{if email1}
<li>E: {email1}</li>
{/if}
</ul>
</div>
</div><!-- end grid 3 -->
{/if}
{/exp:channel:entries}What I am trying to do is go through and pull only entries where the custom field “yard” is equal to “Fayetteville” (or whatever location), and then the switch class that is applied just ensures that the directory info is laid out correctly (built on 960gs).
It seems like the switch is applied to all entries and then they are filtered by the conditional.
Here are links to compare
http://rmrnc.com/index.php/contact/directory (This one lines up correctly and has no conditional).
http://rmrnc.com/index.php/contact/directory/rocky_mount (odd spacing)
Suggestions?
Thanks
Bryan