We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47308
    • 68 Posts
    I was wracking my brain trying to get this to work (unsuccessfully):

    [[+pr_tab_1_title:is=``:then=``:else=`[[+pr_tab_1_title]]`]]

    Then I changed the placeholders to resource fields and it worked:

    [[*pr_tab_1_title:is=``:then=``:else=`[[*pr_tab_1_title]]`]]

    All the documentation I read and forum entries use placeholders for output modifiers. But my placeholders were void of data. Can anyone explain? Why use placeholders and not resource fields? How do I populate placeholders with data?
      • 3749
      • 24,544 Posts
      Placeholders are used when you have some snippet that's aggregating a bunch of resources (getResources, pdoResources, Wayfinder, etc.). The placeholders go in the Tpl chunk for the snippet and are replaced by the snippet.

      When you want the value for the current resource, you just use the asterisk (*).


        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