Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

alternating rows and row counter
Last Post 07/12/2013 11:51 AM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
doug
New Member
New Member
Posts:6


--
07/10/2013 3:46 PM
the search here is broken so I cant seem to find my answer. so I will just ask it (as it has probably been asked 100 times already).

is there a simple way to alternate classes in the Entry.html?
is there a way to get the row counter to show in a first column of a table row?

I do see some js samples to change the alternating rows. I am just wondering if there is a built in way to get it with a query such as
[if|2][query:rowcount mod 2][/if]
this is even row
[endif|2]

Doug
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
07/12/2013 11:51 AM
The easiest is to use jQuery, in my opinion. If you include template.js in the template it will be loaded. In that you could include a simple jQuery snippet to do striping. The default template includes that, by the way, so you can use that as an example:

$(document).ready(function(){$("tr.entryItem:odd").addClass("entryAlternateItem")});
You are not authorized to post a reply.