A different header image for each page/section

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

A different header image for each page/section

Post by burlington »

This has probably been dealt with before but I can't find anything.
Using CMSMS 1.11.10.

If each page or section is to have a different header image, does this require individual templates with the header image location embedded or is there a simpler way through this problem?

I don't like the idea of a proliferation of templates as non-header image changes later on would have to be made to many templates.

Thanks
Martin
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: A different header image for each page/section

Post by velden »

Have a look at the content_image tag which is present in default installations of cmsms.

You can use the module CGSmartImage to resize/crop the image to the dimensions needed.

Module GPFilePicker can be used too. It can be used as a 'content block' (like content_image) and has a very nice UI and feature to upload an image (instead of only selecting images that are uploaded before).

I think there should be code examples on this forum. Use the search function.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: A different header image for each page/section

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “The Lounge”