We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26050
    • 5 Posts
    Here are some of the template tags in case you’re not sure about how to use the new syntax or sure about which ones exist. If you know of anymore add them to the post.

    pagetitle - [[*pagetitle]]
    longtitle - [[*longtitle]]
    description - [[*description]]
    introtext - [[*introtext]]
    menutitle - [[*menutitle]]
    content - [[*content]]
    sitename - [[++site_name]]
      • 7923
      • 4,213 Posts


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • As far as what values are available, for [[*...]] any field from the site_content table is available. Most of them won’t be of much use; for example do you really want to display whether or not it’s set to hide from menus? Also, the dates are all in UNIX timestamps (the number of seconds since Jan 1, 1970), so they aren’t of any use in their raw state.

        For [[++...]] any value in the system_settings table and some from the config.inc.php file are available. Again, most of these aren’t much use; do you really want to display which Rich Text editor is the default?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 7231
          • 4,205 Posts
          Most of them won’t be of much use; for example do you really want to display whether or not it’s set to hide from menus?
          I have found that these can be very handy used together with some logic. But in general they are not used to often in the front end, but are great to have available just in case. wink

            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don't know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 7923
            • 4,213 Posts
            Yes, and now that the new parser supports phx-like filters to every tag, they can be very useful if you want to put some quick logic to the template / document fields without creating a snippet for it.. It gives more choices to the web site developers.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."