Hello, I am using drupal 7 bartik theme. I have created a news site. I have 5 categories featured, sports, cinema, national, technology. Now I want that there is a title image for each of these category displayed when a user visits these category pages or the articles of these category pages.
For example if a user visits a sports article titles "olypmpics gold medal won" he is displayed category image (logo) and this title image continues for every sports article, similary if he visits a cinema article he gets image for that category.
Also, if possible I will want to continue with my websites logo on the header section, and I would like the category image to appear in the following sequence on a article page
Website header
Menu
"CATEGORY IMAGE"
articles title
article
and so on....
Thanks
regards
Comments
How are you categories
How are you categories defined? taxonomy? url?
In your template file you should be able to add php if else statement that checks for category and then displays correct image.
You could also create a block and set visibility to only certain sections if its based on url or something like this : http://captainstarball.com/site-itself/news/displaying-header-determined...
Pedja
Drupal Geek at New Target Inc.
http://www.newtarget.com
I have a taxonomy based categorization.
I have a taxonomy based categorization. Can you guide me please, since I don't know php.
because we are all here to help each other.
Did you find an answer?
Hi Suysri,
I'm wondering the same thing. In fact, spending half a morning (so far) searching the forums and modules to try to find the solution.
I have two Images in my header that are category-specific, and I want the proper pair to display based on the taxonomy category of the node.
I gave taxonomy image a try, but it doesn't seem to accommodate the two-image requirement. At least, not in any way I could figure out.
Were you given help in the end? I'd love to hear what you did.
:::EDIT::::
Found it! (two hours later)
http://drupal.org/project/headerimage