• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

Display different header image depending on article section, but use same template?

I want to display a different header image depending on what article is being viewed on my Joomla 1.5 site.

My question is can this be done (and if so how) without using multiple joomla templates i.e. different template for each section?
0
TonyCabone
Asked:
TonyCabone
  • 5
  • 2
1 Solution
 
wuffCommented:
Why don't you just add some php code that checks the url? Depending on the article you get different GET parameters. Use the article info to detect what image to use.
0
 
TonyCaboneAuthor Commented:
good point however I want something that will work for new articles that are added within a section i.e. new wine page = wine page template
0
 
Amanda WatsonWeb DeveloperCommented:
There is a module that does this, called Header Image

https://support.pillwax.com/open-source/doku.php?id=joomla:header_image

But I find an easy way to do this is to use a custom module, load up the image I want for a particular page and assign that module to that page.

you can then duplicate this process for how ever many images you want.

I guess this isn't really practical if you have hundreds of different images for different articles, but if you only have a dozen or so,  it works really well!
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
TonyCaboneAuthor Commented:
Hi Snowball,

That is what I'm after. I have around a dozen different images to display over about 40 articles.

One more thing though- is it possible to setup so that when my client adds a new article within a certain section, the module for that section is automatically assigned to that article?

I guess what I'm trying to do is assign the header images to it's respective section.
0
 
Amanda WatsonWeb DeveloperCommented:
Well yeah you could by setting up your menu to show items from a particular section/category
Then you assign the module with the image you want to that section/category, then when any article is added to that Section/Category it will show with that header....
Easy as!

0
 
TonyCaboneAuthor Commented:
Do I require the full commercial license to do this?
0
 
TonyCaboneAuthor Commented:
SORRY please ignore my last post
0
 
TonyCaboneAuthor Commented:
love your work! :)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now