0
Welcome Guest! Login
0 items Join Now

Create a whitelabel (3 version) site

    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • I'm into Stylish things that just look good and function well.

    Create a whitelabel (3 version) site

    Posted 12 years 1 month ago
    • Hi
      I am looking to be able to create 3 sites that will be distinguisable from either reading a string from the url or subdomain like

      style1.mysite.com
      style2.mysite.com
      style3.mysite.com

      or

      mysite.com/s1/restofstringurl
      mysite.com/s2/restofstringurl
      mysite.com/s2/restofstringurl

      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
    • Last Edit: 12 years 3 weeks ago by landed.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Create a whitelabel (3 version) site

    Posted 12 years 1 month ago
    • If I understood you correctly, you will be creating 3 versions of the site so I don't see any problems to have different style for each site :oops:
    • Check my services at: Mihha-Vision
    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • 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
    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • 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 ?

      many thanks
    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • 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 waiting for a gotcha to creep in :)
    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • 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...

      Anyone ..ideas
    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • 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 am still trying to understand why I cant switch to my custom preset. Is it working for anyone else ?

      Steps - save as a custom preset then use presets=customname shoudl change the template style to the new preset you saved out.
    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • 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

Time to create page: 0.069 seconds