Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Best way to sort displayed dataobjects into 2 columns in the front end?


Reply

2 Posts   1008 Views

Avatar
Erin

1 June 2010 at 6:14am Community Member, 26 Posts

Hi guys,
This is - I think - a really basic question, but I'm wondering if anyone can give me an idea what the best way might be to display dataobjects in 2 columns on the front end?

Avatar
Willr

1 June 2010 at 5:00pm Forum Moderator, 5511 Posts

You can use the $EvenOdd control and float the odds left and the evens right. For example class="<% if EvenOdd = odd %>left<% else %>right<% end_if %>. This will give you the appearance of 2 columns.