After much searching, I’m unable to find definitive answers to a couple of questions...
1) Is there a way to specify a context-specific setting with [[++____]] ?
Example:
I make all my templates with a property that is a path to the template folder, i.e., the template property "tpl" becomes the placeholder [[+tpl]] ... this is set to something like: [[++base_url]]assets/templates/mytemplate/
This works great within the web context, but breaks from the dev context which is on a different domain. Is there some way to specify that I want the base_url (or maybe the site_url) of a specific context within the tag?Maybe something like [[++base_url:ctxt=`web`]] so that, even though I am in the dev context, I can still have it pointing to the right template folder on the web context’s domain?
2) I am having trouble linking between contexts:
Given 2 contexts with resources:
Web:
my page (1)
another page (2)
Dev:
yet another page (3)
in development (4)
I have set up my dev and web domains with specific base_url, site_url, http_host, site_name, & site_start. Each is on a separate domain. I can get to all resources and pages load just fine. Here’s where it’s weird. I can link from web to dev just fine, i.e., resource 1 contains [[~3]] which returns a proper link to resource 3. However, I can’t link from dev to web, i.e., resource 3 contains [[~1]] which just returns an empty string.
Is there something I’m missing?
3) Parsing tags within a placeholder called from a snippet.
Given the example tpl property above ([[++base_url]]assets/templates/mytemplate/) which works just fine when being referenced in a template or elsewhere, if I use $modx->getPlaceholder(’tpl’) in a snippet, any tags are not parsed/processed and it ends up breaking the output. Is there a way within a snippet to have modx parse a string for tags?
For all of this I’m running Revo 2.0.6-pl
Thanks in advance for any insight!