And for each style I need to colorise and swap a logo.
I wanted to avoid doing template styles per menu item so that things are simple to administer.
I am keen to avoid the style flipping between use - so I need to set some styles via javascript I think and load or disable enable the style sheets that I will modify.
Does anyone thing your templates would not be suitable for this approach ?
Thanks
I'm into Stylish things that just look good and function well.
Re: Create a whitelabel (3 version) site
Posted 12 years 1 month ago
Yes thats what I want to do but can I easily apply the style not using menus...so for example would do my own string manipulation to pull out the style name 'style1' then somehow tell gantry to apply this style - that I guess is more my question. TY
I'm into Stylish things that just look good and function well.
Re: Create a whitelabel (3 version) site
Posted 12 years 1 month ago
Anyone know if I can apply a CUSTOM preset that I have created in the gantry template backend using for example the querystring...
What I need to change depending on ?style=style1 etc...
Logo - ok can do this with custom code
Style - need to prefix the main style changes I make - and these changes come from the template settings (my custom preset) and the css files I am modifying.
I see that you have done it somehow as we can switch presets - CAN WE SWITCH CUSTOM PRESETS ?
I'm into Stylish things that just look good and function well.
Re: Create a whitelabel (3 version) site
Posted 12 years 1 month ago
I think that I figured it out and this is a feature you should push !
So save your customisation as a preset it will give you the option to save with a descriptive name AND a keyword - choose the keyword you would like to use..
e.g. say I have a sport preset I want to use - then I will simply have the url provide preset=
[url]?presets=sport
this then loads this preset - I need to test it further and would like to extend this function so that it isnt just a query string only thing so I can use a subdomain etc - some javascript or php will be able to do this but it has saved me from a lot of work loading new logo ..new css files etc...
I'm into Stylish things that just look good and function well.
Re: Create a whitelabel (3 version) site
Posted 12 years 3 weeks ago
Hmmm for some reason it worked for the default styles like preset1 etc, but using this doesnt work.
Now to confuse things even more there is I see in gantry a ?contentstyle variable that can be set ..this doesnt seem to work either but I can see it does set a cookie. I have seen that this is in the template-options.xml file so all well and good if it worked...
I'm into Stylish things that just look good and function well.
Re: Create a whitelabel (3 version) site
Posted 12 years 3 weeks ago
I have now got it to work through brute force time trial and error. I dont know exactly why but partly my understanding that once a preset is saved it cant be edited.
Anyway bigger to this issue on a white label is that while presets=customname seems to be workable for me I cant differentiate for content now.
In my case I would like to show a different showcase for example for the other labels.
I know this could work given a menu item - so I could do it creating a hidden menu item and just show the right showcase for the right menu item but I was hoping to use a single indicator (presets)
Has anyone any ideas, it does make a lot of sense for us to minimise the number of sites we have to a single codebase. but I would like a certain amount of content that is different per brand..
Thanks - maybe this is an idea for a future template