We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    I will get a "duplicate content" for all my pages, won’t I ?
    Not sure to understand
      • 3143
      • 46 Posts
      Some information about "duplicate content" :
      http://googlewebmastercentral.blogspot.com/2006/12/deftly-dealing-with-duplicate-content.html

      in french :
      http://www.rankspirit.com/duplicate-content.php

      It would be better to make the swithcer work url-transparent.

      There is a problem with validating : The ampersands are sent as they are : "&".
      They should be converted in "&"

      This is the line 85 of assets/snippets/cssSwitcher/classes/htmllist.class.inc.php with "&" :
      $cs['aHref'] = '[~[*id*]~]&'.$this->listAction.'=1&'.$this->listName.'='.$elt; 



        • 25551 ☆ A M B ☆
        • 1,231 Posts
        I’m having issues with this snippet... everything was working fine till about a week ago when I last tried it. I have made several changes but nothing to this snippet. I have also created a blank template to test the snippet on it’s own and it’s simply not putting the css link in the head. The drop down list appears with the 3 style sheets I made and it was fine but now it’s not working. What could cause the link not to be put in the head? The select.js is there though.
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 5811
          • 1,717 Posts
          What could cause the link not to be put in the head?
          are the coockies enabled on your site ? Because, cssSwitcher get the value from POST, GET, cookie or default.
          Have you any js script error ?
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            Hmmm as far as I’m aware cookies are enabled as I didn’t know you could disable them? Is that in the manager?

            There’s no JS errors according to firebug and I tried FF, IE and Chrome. I noticed that when I use the drop down list the url is not changing how it use to show... it use to show the extra info on the end of the url, not sure exactly what it was but &changestyle= what ever but that’s not showing. I have tried it on a blank template with no other JS as well.
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 30912
              • 463 Posts
              Help!

              Ok so i need this for a clients website

              I have set this up as per the instructions and enabled the css path

              define('CS_CSSPATH','assets/templates/wakies/css/');


              and im using the code

              [!CssSwitcher? &defaultcss=`default` &display=`select` &parsefolder=`1` !]


              it just doesnt work....

              yet when i use

              [!CssSwitcher? &defaultcss=`default` &display=`0` !]


              the site renders correctly

              im following the documentation and instructions int he readme but nothing works!

              any ideas?
                • 5811
                • 1,717 Posts
                I have added a first step of documentation on my MODx demonstration site. Go to http://www.modx.wangba.fr/ and choose the CssSwitcher Tab.
                As soon as I have more time, I will improve the demo of the CssSwitcher snippet.
                  • 30912
                  • 463 Posts
                  Thanks for your help on this, I will write up my steps that i did for the documentation for you as a thankyou smiley
                    • 10152
                    • 156 Posts
                    Hello, is there a way to retrieve the id or name of the current stylesheet in a snippet ?
                      • 30319
                      • 406 Posts
                      Is this forum still alive??
                      Does this snippet etc. honor friendly URLs??
                      I ask because I notice it makes very ugly site links.
                      Thank you, Tom