On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Thank you!!!!!! So much!!!! I'm diving in right now!!!
    • Extreme newbie to MODX and coding in general... Sure to give some people a laugh! In a MODX template I'm using, I'm trying to change the colour of a button and it's not changing.

      Original code:

      <a class="button" [[+link:notempty=`href="[[+link]]"`]] [[+target:notempty=`target="[[+target]]"`]] style="[[+textColor:notempty=`color:[[+textColor]];`]][[+backgroundColor:notempty=`background:[[+backgroundColor]];`]][[+marginTop:notempty=`margin-top:[[+marginTop]]px;`]][[+marginBottom:notempty=`margin-bottom:[[+marginBottom]]px;`]]">
      [[+iconClass:notempty=`<i class="fa [[+iconClass]]" style="[[+iconColor:notempty=`color:[[+iconColor]];`]]"></i>`]]
      [[+text]]
      </a>

      Changed to:

      <a class="button" [[+link:notempty=`href="[[+link]]"`]] [[+target:notempty=`target="[[+target]]"`]] style="[[+textColor:notempty=`color:[[+textColor]];`]][[+backgroundColor:notempty=`background: #fa8227;`]][[+marginTop:notempty=`margin-top:[[+marginTop]]px;`]][[+marginBottom:notempty=`margin-bottom:[[+marginBottom]]px;`]]">
      [[+iconClass:notempty=`<i class="fa [[+iconClass]]" style="[[+iconColor:notempty=`color: #fa8227;`]]"></i>`]]
      [[+text]]
      </a>

      Trying to change the colour of the button to #fa8227...

      Help appreciated, thank you.
      • Where is this coming from? Those [[+backgroundColor]] and [[+iconColor]] tags are placeholders, and that means they are probably configurable somewhere, and that is where you should change them.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
        • I can't find a tutorial that will tell me how to manage my site in plain English. I don't understand the computer jargon. If there is such a place please direct me. Thank you
          • If you are going to be working with a computer program, then you have to learn the "jargon". There's no getting around it. Here is a good begining. http://codingpad.maryspad.com/2010/08/18/modx-revolution-for-beginners-part-1-introduction/



              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
            • bradalexander Reply #416, 5 years ago
              Trying desperately to install a template. When I try to Install by Package Management>Download Extras>Install the usual console runs with lots of script then stalls after a few minutes. Then, nothing. Am I missing something?
              • bradalexander Reply #417, 5 years ago
                Trying desperately to install a template. When I try to Install by Package Management>Download Extras>Install the usual console runs with lots of script then stalls after a few minutes. Then, nothing. Am I missing something?
                • Hi All,

                  I’m a Modx newbie and wanted to get any tips on using Nginx. I have a sandbox setup for learning and I have Nginx working properly but being new to Modx maybe there are some tips and pointers to optimizing Nginx & Modx.

                  Regards

                  Bob
                  • http://rtfm.modx.com/revolution/2.x/getting-started/installation/basic-installation/nginx-server-config
                    https://www.rosehosting.com/blog/how-to-install-modx-on-a-linux-vps-with-nginx/

                    MODX is just a PHP application, so other than the requirements for Friendly URLs, anything you do to optimize nginx and your database will benefit MODX performance.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                    • Hi,

                      My name is Michael Gibbs. I am new member of the community and i like to say hello to all members.