Node gallery has code provided - Views code to display gallery list page in table or grid format. Works great but I need to change the background color and borders for the table. Can someone advise on how to do so?
Maci

CommentFileSizeAuthor
#4 Edit view_theme.png117.59 KBdbeall
#3 snapshot.jpg89.72 KBmacmaci
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbeall’s picture

Version: 6.x-2.0-alpha9 » 6.x-2.0-alpha12
Priority: Critical » Normal

change version to current, change priority to normal, but should be minor.

Goto the 'view', click the edit button to the right of the view
click the 'default' and/or 'page' view at the top left.
Then click on 'theme' 'information' to see the available tpl file you can use.
The files are located in sites/all/modules/views/theme

quote from merlin of chaos, the views developer
Please note that the biggest issue here is that the official views 2 documentation is part of the advanced help that ships with Views.
http://groups.drupal.org/node/4161#comment-69136

Views 2 theming
http://drupal.org/node/352970

dbeall’s picture

you can try using firebug in firefox and doing adjustment to the themes css.
I would have to view the page and use those tools to see what you have since there are hundreds of different Drupal themes.

macmaci’s picture

FileSize
89.72 KB

thanks for your instructions but they don't seem to solver the problem unless it is over my head. Perhaps the snapshot I've attached will help. It shows the table format I've selected in views to use for my gallery page view which list all of my galleries. I need to be able to format the table so that the background matches my site as well as the borders. I would also like to align the type differently. Can't seem to find the CSS file if that is in fact where I should change it. Would appreciate any guidance you can provide.
Thanks,
Maci

dbeall’s picture

FileSize
117.59 KB

If you post your site URL, I will look at it in firebug to find the classes for css where you over ride the color.

Actually, themeing in views isn't anything to do with node_gallery because that is done through the tpl.php files associated with views.
I have only done a small amount of themeing in views and don't know that much about it.
Save the file attachment to see what I am talking about in views themeing. The image is quite tall, zoom in on it to see more.

macmaci’s picture

I downloaded Firebug as you suggested and was able to finally locate where to edit the CSS. I like to challenge myself and your help was invaluable. Just one last thing. There is a top border on the table that comes from the "system.css". Should I edit the system.css or is there a way around this to prevent my border from reverting when I update Drupal?
Thanks much,
Maci

dbeall’s picture

Firebug is a really neat tool !

no need to edit any core files, find the css classes you need to fix.
add them to your themes css file at the bottom and Drupal will look there first

Keep your modifications safe from upgrades...
Your modified files should all be sites/all/themes/my-theme
If you use a core theme, copy the whole folder and paste it into sites/all/themes

macmaci’s picture

Great. Thanks a lot.
-M

dddave’s picture

Status: Active » Fixed
macmaci’s picture

Status: Fixed » Closed (fixed)