Jun 24th, 2009, 1:50 PM
Thanks. I figured it out. After re-reading my original post, I realize why you might have been confused so I sort of disregarded your answer. (Both questions were independent of another, that's why). Anyways, here's how I did it.
1. All I wanted to do was colour code my submissions.
<tr class="{$submission.party}">
And then my CSS just has 10 colours or whatever. That was easy.
2. What I wanted to do was group by a field. After searching on google a bit, I found someone else who did it and copied their code. I then realized it was the exact same method as your code . Oops. Just looping a variable worked great.
*** Finally, I was wondering... this sounds a little weird but could you have a field sort by the order they are in the dropdown? My groups right now sort alphabetically, but could they sort in the order they are in the dropdown and include empty ones as well? It's not important, I was just wondering.
Thanks again for your continued help!
1. All I wanted to do was colour code my submissions.
<tr class="{$submission.party}">
And then my CSS just has 10 colours or whatever. That was easy.
2. What I wanted to do was group by a field. After searching on google a bit, I found someone else who did it and copied their code. I then realized it was the exact same method as your code . Oops. Just looping a variable worked great.
*** Finally, I was wondering... this sounds a little weird but could you have a field sort by the order they are in the dropdown? My groups right now sort alphabetically, but could they sort in the order they are in the dropdown and include empty ones as well? It's not important, I was just wondering.
Thanks again for your continued help!