-
- 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
If that is a system setting it's missing an extra +
Should be:
@sotwell I'm sure you know that but I don't want @mafoken using it then say it doesn't work
Quote from: sottwell at Jan 24, 2013, 09:29 AMI 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
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.
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.