We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17930
    • 81 Posts
    A real example: When I have Quip on context2, it is looking for the web.css file in /context2/assets/components/quip/.

    Maybe these are my problem, assets_url assets_path. What should their values be for the Contexts web and then for context2 ?
    Should both Contexts output this:
    /assets/
    /home/username/public_html/core/.

    (I haven't set either of them in any of the Context Settings, should I set assets_url in context2 and what would I put as the value? My brain is too fried right now to figure it out. Sorry.)


    Side: I searched and where do I read how to use ContextRouter? [ed. note: mafokken last edited this post 11 years, 3 months ago.]
    • I don't have any settings for assets_url; that is set in the config.inc.php file anyway. I do, however, for the Gallery extra, have this as the gallery.files_url
      [[+assets_url]]gallery/
        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
      • If that is a system setting it's missing an extra +

        Should be:

        [[++assets_url]]gallery/


        @sotwell I'm sure you know that but I don't want @mafoken using it then say it doesn't work wink

        Quote from: sottwell at Jan 24, 2013, 09:29 AM
        I don't have any settings for assets_url; that is set in the config.inc.php file anyway. I do, however, for the Gallery extra, have this as the gallery.files_url
        [[+assets_url]]gallery/
          Benjamin Marte
          Interactive Media Developer
          Follow Me on Twitter | Visit my site | Learn MODX
        • Right. Definitely has the other +,
          	
          gallery.files_path - [[++assets_path]]gallery/
          gallery.files_url - [[++assets_url]]gallery/
          

          Also has, interestingly enough,
          	
          gallery.default_batch_upload_path - {assets_path}images/
          

          so I presume you can use either syntax.
            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
          • Actually, no. In order for the values to be evaluated before being processed as tag strings, you would have to use the {assets_path} syntax. MODX tags in the setting value will not be evaluated until it is included in the output and processed by the parser. So it depends on how/when the value is being used.