We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6425
    • 23 Posts
    Is there a variable for the current document? I want to have a different picture display on individual pages that is outside the content area. I was thinking that using the document id would be a way to do this. I could name the pictures "documentid".jpg or something like that.

    Thanks,

    Dave
    • Hi danderson,

      More information on the Document Object can be found here: http://modxcms.com/the-document-object.html

      You can use any of the properties within a document/template by using template variable tags, for example:
      [*id*]

      Hope that helps,
      Garry
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 6425
        • 23 Posts
        That was exactly what I was looking for. I hadn’t begun using TVs yet - I was missing out. grin