We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8427
    • 14 Posts
    Hi all.

    I’d like to use getResources to get the value of the TV called "img_confezione" for all the resources that have a custom (called "ricetta") TV’s value equal to the current ID.

    I used the following code:
    [[!getResource? &parents=`4` &includeTVs=`1` &processTVs=`1` &tvFilters=`ricetta==[[*id]]` &tpl=`img-ricetta-tpl` &sortby=`menuindex` &sortdir=`ASC`]]


    But it doesn’t work. Why? I don’t understand where the problem is.

    Thank you.
      • 8427
      • 14 Posts
      Ok, very stupid error. Final "s" missing undecided

      [[!getResource[b]s[/b]? &parents=`4` &includeTVs=`1` &processTVs=`1` &tvFilters=`ricetta==[[*id]]` &tpl=`img-ricetta-tpl` &sortby=`menuindex` &sortdir=`ASC`]]


      Another question: how can I give a different template to the second resource retrieved by getResources?
        • 11076
        • 159 Posts
        umm... maybe it could help
        http://translate.google.co.il/translate?js=n&prev=_t&hl=iw&ie=UTF-8&layout=2&eotf=1&sl=ru&tl=en&u=http%3A%2F%2Fcommunity.modx-cms.ru%2Fblog%2Ftips_and_tricks%2F1384.html
          Michael Shraibman( gOmp)  | Freelance Design & Development | wink  impossible is nothing...
          • 5340
          • 1,624 Posts
          Have you tried the
          tplOdd - Name of a chunk serving as resource template for resources with an odd idx value (see idx property)


          Quote from: ecmedia at Jan 26, 2011, 07:42 AM

          Ok, very stupid error. Final "s" missing undecided

          [[!getResource[b]s[/b]? &parents=`4` &includeTVs=`1` &processTVs=`1` &tvFilters=`ricetta==[[*id]]` &tpl=`img-ricetta-tpl` &sortby=`menuindex` &sortdir=`ASC`]]


          Another question: how can I give a different template to the second resource retrieved by getResources?