Hi All,
I have a project to port a site I hand coded some time ago over to CMSMS but there is one aspect of it I cant see how to implement.
Background:
The site in question is a photographers portfolio.
One of the particular features of the site design is that each page/photo has a related colour picked out and specified in the Stylesheet, which displays in a box next to it. The colour is applied to the box by giving the div a unique style and putting the colour attribute in that style, which is added to the stylesheet.
Question:
How do people think would be the best way to implement something like this in the cmsms page add/edit admin?
I need to input a style name and a hexadecimal colour value and to assign that style to the relevant div in the html. I guess the style could be applied in line, but this doesnt seem very elegant. I woud like it to be appended to the stylesheet itself ideally.
Is this possible?
There maybe a simple way to do this that is staring me in the face, or I might need a plugin or an addon coded up. If the latter then I can probably find a modest budget for someone to help me out, I would also be pleased to release that code to the project if thta was the best route.
Any thoughts or pointers on this greatly appreciated.
All the best
Simon
dev question - an admin plugin? Paid work for someone maybe?
-
- Forum Members
- Posts: 29
- Joined: Wed Apr 26, 2006 5:11 pm
Re: dev question - an admin plugin? Paid work for someone maybe?
i don't quite understand the question, but maybe you should try adding an extra content block to your template?
something like that ...
When adding a page with the template where you use extra blocks, you would see an extra line to input the code for color.
Sorry if i misunderstood the question
something like that ...
When adding a page with the template where you use extra blocks, you would see an extra line to input the code for color.
Sorry if i misunderstood the question

-
- Forum Members
- Posts: 29
- Joined: Wed Apr 26, 2006 5:11 pm
Re: dev question - an admin plugin? Paid work for someone maybe?
Hi Piishkus, Thanks for trying but maybe i didnt explain it well enough.
in a nutshell: i want my client (who has no knowledge of html, imagine he is an idiot who can barely dress and feed himself for the purposes of this question) to be able be able to make new pages.
the workflow goes like this:
add new content > choose template > add actual content. ---> so, he types in his caption and uploads a new image: i think he can manage that. Well lets hope so anyway....
So far so good.
But I want him to be able to set the background color of one of the divs (the with the caption) in the selected template by simply pasting the hex code into a box on the new content page dialog and pressing save. (Remember he is incapable of writing html).
When he saves it I want that hex code and stye rule to be written to the stylesheet.
Maybe I am making it to complicated: maybe I can do something with an inline style and edit a button in Fck wysiwig?
Does this help to clarify things?
Simon
in a nutshell: i want my client (who has no knowledge of html, imagine he is an idiot who can barely dress and feed himself for the purposes of this question) to be able be able to make new pages.
the workflow goes like this:
add new content > choose template > add actual content. ---> so, he types in his caption and uploads a new image: i think he can manage that. Well lets hope so anyway....
So far so good.
But I want him to be able to set the background color of one of the divs (the with the caption) in the selected template by simply pasting the hex code into a box on the new content page dialog and pressing save. (Remember he is incapable of writing html).
When he saves it I want that hex code and stye rule to be written to the stylesheet.
Maybe I am making it to complicated: maybe I can do something with an inline style and edit a button in Fck wysiwig?
Does this help to clarify things?
Simon
Re: dev question - an admin plugin? Paid work for someone maybe?
What he says to do will give you a single line textarea in Content » Pages » Edit Page: where they can add the hex number for the color, if you don't want them to have to rememeber the # add it in front color:#{con...
If the box they add the image to has a full WYSIWYG toolbar on top they can hit the background color button and add whatever color they want to that part...
If the box they add the image to has a full WYSIWYG toolbar on top they can hit the background color button and add whatever color they want to that part...
-
- Forum Members
- Posts: 29
- Joined: Wed Apr 26, 2006 5:11 pm
Re: dev question - an admin plugin? Paid work for someone maybe?
Ah!
I see! sorry I was a bit slow here.
So far I made 2 sites/sets of templates. For some reason I never made the mental leap to the idea that content can just be a line of code inserted in a tag.. ! Silly me..
This is great. Thanks again for the help, I think this should solve the problem!
Simon
I see! sorry I was a bit slow here.
So far I made 2 sites/sets of templates. For some reason I never made the mental leap to the idea that content can just be a line of code inserted in a tag.. ! Silly me..
This is great. Thanks again for the help, I think this should solve the problem!
Simon