We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50883
    • 8 Posts
    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.]
      • 22840
      • 1,572 Posts
      Those are TV's assigned to templates, to access them you need to edit the resource directly and click the template variable tab
        • 50883
        • 8 Posts
        Quote from: paulp at Aug 19, 2015, 08:11 AM
        Those are TV's assigned to templates, to access them you need to edit the resource directly and click the template variable tab

        Thanks for your reply Paul,

        How would I know what template they belong to when the chunk code is like this?

        <img src="[[+thumbnail]]" alt="[[+name]]" [[+image_attributes]] />
          • 22840
          • 1,572 Posts
          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 )
            • 50883
            • 8 Posts
            Quote from: paulp at Aug 19, 2015, 08:43 AM
            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 )

            Thanks for the info, still haven't had any luck finding any of them. I've looked everywhere!
              • 10208 ☆ 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
                Frogabog- MODX Websites in Portland Oregon
                "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                Having server issues? These guys have MODX Hosting perfected - SkyToaster
                • 3749
                • 24,544 Posts
                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).





                  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