We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10378
    • 375 Posts
    In the MODx Revo system settings there are some "placeholders" (?):

    {assets_path}
    {core_path}
    {http_host}


    I wonder where the values of these placeholders come from and if there is a complete list for reference?

    This question has been answered by multiple community members. See the first response.

      Freelancer @bitego http://www.bitego.com
      ---
      GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
      More infos here: http://www.bitego.com/extras/goodnews/
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      They come from the system configuration settings; these particular ones probably originally come from the config files rather than from the database. I don't know if you can use them all in your own settings or not.

      http://rtfm.modx.com/display/revolution20/System+Settings [ed. note: sottwell last edited this post 14 years, 5 months ago.]
        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
        • 10378
        • 375 Posts
        Quote from: sottwell at Apr 06, 2012, 04:20 AM
        They come from the system configuration settings; these particular ones probably originally come from the config files rather than from the database. I don't know if you can use them all in your own settings or not.

        http://rtfm.modx.com/display/revolution20/System+Settings

        Hi Susan - thanks for the fast response!

        In the MODx system settings I can't find an entry for the values I posted - also the WIKI page you sent me has no reference to these settings. So are you sure these values are from the MODx system settings?

        And aren't system settings normally accessed like this:

        [[++setting_key]]


        Now I'm confused...
          Freelancer @bitego http://www.bitego.com
          ---
          GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
          More infos here: http://www.bitego.com/extras/goodnews/
        • discuss.answer
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Within the Configuration editing tool that syntax is the one used. The actual values come from the config.inc.php file and are set at install-time, but how they get into the form used there I don't know.
            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
          • discuss.answer
            • 22303 MODX Staff
            • 10,725 Posts
            When Settings (System or Context) are loaded, any references to existing settings using the curly braces will be replaced when they are loaded. Other normal tags within the values are meant to be evaluated later, not when loaded.
              • 3749
              • 24,544 Posts
              There are a number of pseudo System Settings that don't appear in the System Settings grid because changing them is so dangerous. Some come from config.inc.php, some are calculated from the $_SERVER array.

              In page content they're displayed with tags, but in the Manager grids, they're entered in the {setting_name} form. The tag parser doesn't execute in the Manager (if it did, you wouldn't see any tags in your elements and resources). I think the {setting_name} tags are replaced with str_replace() or preg_replace() whenever the setting is used.


              ------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using.
              MODX info for everyone: http://bobsguides.com/modx.html
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting