We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46630
    • 40 Posts
    Hi, I have a getResources chunk in which I have to place several ids from resources. Here it is:

    [[getResources?
        &resources=`34,33,54,61,59`
        &tpl=`tabs_ingredients_slider_tpl`
        &depth=`1`
        &sortby=`menuindex`
        &sortdir=`ASC`
        &limit=`0`
        &includeTVs=`1`
        &processTVs=`1`
    ]]

    I have made a checkbox TV with input of title and id:
    title1==34||title2==33||title3==54||title4==61||title5==59

    The output uses comma as delimiter. The result shows all ids shown as above.

    Can I use this TV in getResources chunk to automate the &resources part in behalf of user's choice?

    The code below doesn't work!
    &resources=`[[*my_tv]]`

    Thanks! [ed. note: ispasov last edited this post 10 years, 11 months ago.]
      • 47401
      • 295 Posts
      so basically you have 1 template, using multiple pages, each page is assigned a specific TV. that TV is a checkbox which you can chose multiple options. then you assign them to that page. are you saying that your not too sure on how to reference the multiple options for each page?

      is that correct?
        • 46630
        • 40 Posts
        Quote from: comp_nerd26 at Oct 22, 2015, 03:29 AM
        so basically you have 1 template, using multiple pages, each page is assigned a specific TV. that TV is a checkbox which you can chose multiple options. then you assign them to that page. are you saying that your not too sure on how to reference the multiple options for each page?

        is that correct?

        I have to assign one page to multiple others.

        I just want to know how to output in &resources part of getResources chunk the ids of the chosen resources in the checkbox TV.
          • 47401
          • 295 Posts
          you have to reference them in the template tabs_ingredients_slider_tpl then in that template tabs_ingredients_slider_tpl calls another *id, then you have to create a chunk as a loop to retreive each assigned value to that page.

          in your getresources you need to add this:

          &where=`{"authorKey:=":[[*articleBy]]}`


          replace authorKey with the key name, and replace *articleBy with the TV that you assigned to that page.