Unique output for each item & css depending on output

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Izz ad-Din's picture

Hello all,

I was wondering if anyone knew how to generate a unique output for each item, using the tpl files.

So it would be something like this:

<?php print item1; ?>
<?php print item2; ?
<?
php print item3; ?>

etc.

My second question is, is it possible add if statements to the content of fields for depending which css is to be used. For example, if the taxonomy term of the field is 'Apple', it must give it a green background. If the taxonomy term is 'Strawberry', is must give it a red background.

Thanks in advance for all your thoughts on this.

Kind regards,

Izz ad-Din Ruhulessin

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: