We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10378
    • 375 Posts
    I wonder where the Gallery plugin gets the both values assets_path and assets_url from?

    Both values are used in Gallery plugin settings:

    gallery.files_path | [[++assets_path]]content/gallery/
    gallery.files_url | [[++assets_url]]content/gallery/


    Those values should be located in the system settings of MODx but I can't find them.

    This question has been answered by anso. 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/
      • 1778
      • 659 Posts
      Hello
      As the tags are [ [ ++something ] ] (without spaces) the settings come from "System settings" you can find them in System -> system settings...
      BTW all the settings in the system settings are accessible with a tag like [ [ ++name_of_setting ] ] (without spaces)...
      Cheers
        • 10378
        • 375 Posts
        Quote from: anso at Apr 06, 2012, 08:43 AM
        Hello
        As the tags are [ [ ++something ] ] (without spaces) the settings come from "System settings" you can find them in System -> system settings...
        BTW all the settings in the system settings are accessible with a tag like [ [ ++name_of_setting ] ] (without spaces)...
        Cheers

        Hi Anso,

        as I wrote in my post I can't find these tags in MODx system settings! Therefore my question.
        Its strange but these tags returns correct values. So I wonder where those values come from?

        Hmm.. still 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
          • 1778
          • 659 Posts
          Ah sorry
          assets_path is set when you install modx (as the core_path) see transport.core.php
          I guess assets_url is set somewhere else during install or deduced from assets_path...
          Cheers
            • 10378
            • 375 Posts
            Thanks for your help!
              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/
              • 8321
              • 0 Posts
              it’s set in:
              core/config/config.inc.php
                • 3749
                • 24,544 Posts
                These are not in the Systems Settings grid (last time I checked), but are available with tags (sorry about the formatting - from my book):


                Name	Tag	                       Example output
                Site URL	        [[++site_url]]	       http://localhost/revo/
                Base Path	        [[++base_path]]	       C:/xampp/htdocs/revo/
                Base URL	        [[++base_url]]	       /revo/
                Core path	        [[++core_path]]	       C:/xampp/htdocs/revo/core/
                Manager Path	[[++manager_path]]   C:/xampp/htdocs/revo/manager/
                Manager URL	[[++manager_url]]	/revo/manager/
                Processors path	[[++processors_path]	C:/xampp/htdocs/revo/core/model/modx/processors/
                Assets path	[[++assets_path]]	C:/xampp/htdocs/revo/assets/
                Assets URL	[[++assets_url]]	        /revo/assets/
                Connectors path	[[++connectors_path]]    C:/xampp/htdocs/revo/connectors/
                Connectors URL	[[++connectors_url]]    /revo/connectors/
                URL Scheme	[[++url_scheme]]       http://
                HTTP Host	        [[++http_host]]   	localhost
                


                Some are deduced from the URL of the request, others are calculated from other known values.



                ------------------------------------------------------------------------------------------
                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