Allowing users to change template image

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm

Allowing users to change template image

Post by aln_cms »

Hi, I have a site in which I would like the user to be able to change the main logo from time to time.  Currently, the logo is in the template because I don't want them to be able to change the page layout.  I have started to write a module for it - but it seems like something that someone must have already come across?  Any ideas?

thanks
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Allowing users to change template image

Post by Dr.CSS »

Maybe...



This will give you a one line edit box where they can add text to create a class, of course you will have to have
div#header .TheWordTheyPutInIt {background: url(path to image)} in the CSS to make this work so it can't just be random...

Then again if you make the header a true content block, w/o oneline="true", {content block='Header'}
they could use the full editor toolbar to add an image, maybe from a folder called Headers with just header images, all the same size, in it for them to choose from...
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm

Re: Allowing users to change template image

Post by aln_cms »

Hi Mark - thanks for getting back. This had to be as simple as possible - I hacked a module together last night - I'll submit it once I remove the most embarrasing code ;-)

Alan
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
Post Reply

Return to “CMSMS Core”