I've achieved a stripe effect for my category item lists using the k2.css with .odd and .even styles and placing <?php echo ($key%2) ? "odd" : "even"; ?> in my category.php file. See this example here - ryangroupstl.com/scottprop/index.php?option=com_k2&view=itemlist&task=category&id=24:bellerive&Itemid=228
I'm having a ton of trouble figuring out how to apply this same styling to my tag lists. Essentially I have a menu created from tags. When my tag items display in a list I need every other one to have a background color. I've tried applying <?php echo ($key%2) ? "odd" : "even"; ?> to the tag.php file after <div class="tagItemView"> with no luck. It seems to only pick up the "even" value in the list.
I need to apply the styling to this page - ryangroupstl.com/scottprop/index.php?option=com_k2&view=itemlist&layout=tag&tag=less%20than%202,000%20sq%20ft&task=tag&Itemid=253
Any suggestions would greatly be appreciated!
I'm having a ton of trouble figuring out how to apply this same styling to my tag lists. Essentially I have a menu created from tags. When my tag items display in a list I need every other one to have a background color. I've tried applying <?php echo ($key%2) ? "odd" : "even"; ?> to the tag.php file after <div class="tagItemView"> with no luck. It seems to only pick up the "even" value in the list.
I need to apply the styling to this page - ryangroupstl.com/scottprop/index.php?option=com_k2&view=itemlist&layout=tag&tag=less%20than%202,000%20sq%20ft&task=tag&Itemid=253
Any suggestions would greatly be appreciated!