View styling - help

Events happening in the community are now at Drupal community events on www.drupal.org.
Sigal's picture

Hi all,

T's me again ;)

I need help with styling my custom home page.

I have a block-view that I display on the page, but I want to style one of it's fields, for example, I want it to have blue background.

When I look at the views/theming information, I see this line: $data = $row->{$field->field_alias} but I'm not sure what does it mean.

My view is based on taxonomy terms and I want the term_name to be White text on Blue background.

I created a views-view--homecats.tpl.php file and I think I need to change this code section:

<?php
print $rows;
?>

But I can't figure out what to change it to.

print $row-> ????

Can someone please help?

Thanks and god bless,

Sigal

Comments

theme files

Max_Headroom's picture

Sigal
Send me your tpl file, so that I can have a look. In fact, send me your whole theme folder.

Quentin

Quentin

Thanks

Sigal's picture

Thanks Quentin,

After a lot of tossing and turning, I found the view_theme_wizard module and managed to do what I want.

Thanks again for always trying to help, you are a star.

Sigal

South Africa

Group notifications

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