Solved

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

Posted on 2010-08-25
8
410 Views
Last Modified: 2012-05-10
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
Comment
Question by:TonyCabone
  • 5
  • 2
8 Comments
 
LVL 3

Expert Comment

by:wuff
ID: 33523237
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
 

Author Comment

by:TonyCabone
ID: 33523395
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
 
LVL 11

Accepted Solution

by:
Amanda Watson earned 450 total points
ID: 33525639
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:TonyCabone
ID: 33527194
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
 
LVL 11

Expert Comment

by:Amanda Watson
ID: 33527219
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
 

Author Comment

by:TonyCabone
ID: 33527455
Do I require the full commercial license to do this?
0
 

Author Comment

by:TonyCabone
ID: 33527494
SORRY please ignore my last post
0
 

Author Closing Comment

by:TonyCabone
ID: 33527514
love your work! :)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error on link 14 48
Using a 16 / 12 column Grid - Can't get columns to display correctly 4 23
Alignment is not working correctly. 8 39
Only three borders showing on image 5 20
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question