Hey,
How would I find the value/code/workings of a place holder such as [[+image_attributes]] and [[+whereClause]]?
I'm new to everything ModX and have been given a complex website to make alterations to and a lot of information seems to be pulled from these place holders.
Any information on this would be extremely helpful, thanks in advance!
[ed. note: pags11 last edited this post 11 years, 1 month ago.]
Those are TV's assigned to templates, to access them you need to edit the resource directly and click the template variable tab
you wouldnt,
The TV's are assigned to a template but editable when editing a resource, that chunk will be called in a template but without knowing the site structure or viewing the site it would be very hard to say, if it's on the about us page ( for example ) edit that page and see if it is in the Template Variables for that, if not look in the template that its using for something like getResources, that should then have a parents section with a number ( document id )
-
☆ A M B ☆
- 1,780 Posts
It would be easier to look at (open) the TV itself, identify which template it has access to in the "template access" tab (or if using 2.3.x or higher - click on the template access link at the top of the resource), or conversely, open up each template and click on the template variables tab (or link at the top), then see which tvs are checked as being assigned to that template.
This may help you find where your chunks and tvs are being used:
http://modx.com/extras/package/moddevtools
I'm overdue for a nap, but why are we assuming that those are TVs? They're placeholder tags, not TV tags.
The values could come from TVs, but if you're not finding TVs with those names (in the Template Variables section of the Elements tree), more likely some snippet (or much less often, a plugin) is setting their values.
If they're used to list resources (pages) on the site, it's probably getResources. If they're used to create a menu, it's probably Wayfinder.
We might be more help if you show us the code that you see those placeholders in (and the name and type of the element they're in).