We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42046
    • 436 Posts
    Quote from: sottwell at Aug 02, 2013, 01:04 AM
    Hm. I wonder if pdoResources has an even better way of handling it.

    pdoResources now supports conditional templates too. I requested it from the author and he added it last month.
      • 37042
      • 384 Posts
      Quote from: absent42 at Jul 30, 2013, 11:21 AM
      You could also use conditional templates in the getResources call

        &tplCondition=`field/TV`
        &conditionalTpls=`{"1":"tplA","2":"tplB","3":"tplC"}`
        &tpl=`defaultTpl`

      I finally got round to trying this and confirm it works beautifully. Its so useful it definitely needs adding to the documentation smiley
        ...