Page 1 of 1
Allowing users to change template image
Posted: Mon Jan 08, 2007 7:14 pm
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
Re: Allowing users to change template image
Posted: Mon Jan 08, 2007 9:43 pm
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...
Re: Allowing users to change template image
Posted: Wed Jan 10, 2007 4:40 pm
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