Thanks in advance for any help with this.
This post may belong in a "Themeing Druapl Views" forum over at the Drupal site; but i thought i would post it here because others may be dealing with the same issue.
Plus, it involves a handy solution, that i'd like to share with everyone, for easily allowing non-technical "storekeeper" type folks that you might be setting up a site for, to easily add and remove products from a list of Store "Specials" or "Favorites" on the home page.
Here it goes:
I've made a custom block using the views module with 3 fields, all filtered by a taxonomy term called "Specials" (This is the handy solution part that allows "storekeepers" to simply add or remove the taxonomy term "Specials" from an individual product's taxonomy to make the product appear and disappear from the block on the front page. See work in progress at www.theperfumed-dragon.com (This may not be a groundbreaking idea; but nubes like myself may not be aware that this is possible.)
This is all working great; but i'm having trouble themeing the table created by the block view using css. I'm able to change some things using:
/*This css works for those of you just glancing*/
.view-Specials {
color:#FF0000;
etc.
}But the gray (BG-COLOR:#333) table itself is being "themed" from the system.css with labels that include TABLE, BODY, TR.odd, TR.odd TD, etc. And changing ANY of these will effect ALL tables. I only want to effect one table at a time. In layman's terms, i'm looking for something like this:
/*This css DOES NOT WORK for those of you just glancing*/
.view-Specials tr.even, tr.odd {
background-color: #fff;
border-bottom: 1px solid #ccc;
padding: 0.1em 0.6em;
etc.
}Any suggestions for themeing individual block tables created with the views module?
Thanks very much,
Scott






Joined: 08/08/2007