0
Welcome Guest! Login
0 items Join Now

Getting template parameters based on sub-domain

  • Getting template parameters based on sub-domain

    Posted 15 years 9 months ago
    • Hello all,

      I would like to use different template parameters on different subdomains. Right now I just have multiple template folders with the different params, but if I change the CSS or update the template, I have to change it on all of them.

      For example, I have different slogans for the different subdomains. I want this code...
      $show_logo_slogan         = ($this->params->get("showLogoslogan", 1)  == 0)?"false":"true";

      ...to retreive a different slogan when the subdomain changes. Something like:

      $show_logo_slogan = if subdomain is "az.mysite.com",($this->params->get("showLogoslogan1", 1) == 0)?"false":"true";
      $show_logo_slogan = if subdomain is "al.mysite.com",($this->params->get("showLogoslogan2", 1) == 0)?"false":"true";

      I can figure out the rest I think.

      Thanks!
  • Re: Getting template parameters based on sub-domain

    Posted 15 years 9 months ago
    • Could someone direct me to someone who could help me?

Time to create page: 0.115 seconds