Is there a way to use approved color prevaules through xslt?
I have 5 predefined colors on the datatype i would like to make use of, but i dont want to add them to a document type, as the user shouldnt have acess to the selection
I did the same thing for a client, they wanted to be able to change the color of their background through their Umbraco backoffice so as to customize their homepage with predefined color scheme.
What is you create and XSLT with uploaded images? then you just insert the macro which will load the background images but you can make the images load randomly with javascript.
accessing approved color prevaules with xslt
Is there a way to use approved color prevaules through xslt?
I have 5 predefined colors on the datatype i would like to make use of, but i dont want to add them to a document type, as the user shouldnt have acess to the selection
Can i access the values throught XSLT. And how?
Hi,
You can do that by using css instead and adding them in a datatype and user can easilyt access it from the Content itself.
To clarify. I dont want the user to be able to select a color.
i want to access the "approved color" datatypes prevalues from xslt.
Am confused so who will access the Colors?
Why not just create a new user and just dont give it access to this part
//fuji
Ok, so to paint the whole picture.
I want to render a random background-color on a div. So i would create the color values in the dataype, and then select it randomly with xslt.
Just thought it would be real easy if there was an xslt way to access the datatype without it beeing defined on a document type
I did the same thing for a client, they wanted to be able to change the color of their background through their Umbraco backoffice so as to customize their homepage with predefined color scheme.
What is you create and XSLT with uploaded images? then you just insert the macro which will load the background images but you can make the images load randomly with javascript.
That can be done as well.
Allright, so since it doesnt exactly seem to be possible, and since i dont want the user to touch the colors anyway, i went the javascript way:
is working on a reply...