Hi all,
I am using EE 1.6.9 with the following code and the switch tag is not working. It’s using the first option (“one”) for each instance of the div.
{exp:query sql="SELECT entry_id, entry_date FROM exp_weblog_titles WHERE weblog_id = {my_weblog_id} AND DATE(FROM_UNIXTIME(entry_date)) < NOW() LIMIT 1"}
{exp:comment:entries entry_id="{entry_id}" limit="15" sort="desc" category="2"}
<div class="{switch="one|two"}">
{comment}
</div>
{/exp:comment:entries}
{/exp:query}You can see it here:
http://leadingvoices.lipscomb.edu/onissue/
It works on the page that uses a full URL path:
http://leadingvoices.lipscomb.edu/onissue/what_do_you_think_the_legacy_of_governor_bredesen_will_be/
But on that page, I’m not using the query tag.
This is my first post here so go easy on me if I forgot to mention anything else!