We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31255
    • 118 Posts
    I have a getresources call which outputs all root level resources in a context. I`ve made few more contexts and now this call outputs all root level published resources from every contexts.

    Call:
    [[getResources? &parents=`0` &depth=`0` &tpl=`listaa-sivut-kuvalla-tpl` &sortby=`menuindex` &sortdir=`ASC` &limit=`0` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]


    Is there a solution for one call to show pages from context where you are or do I have to make call for every context with option "context"?

    TV:s in call are for images.

    This question has been answered by achterbahn. See the first response.

      Tassu, webmaster of Valokammi
    • discuss.answer
      • 36818
      • 119 Posts
      Hi Valokammi,

      you could try the option
      &context
      with the context key
      [[*context_key]]

      -->
      &context=`[[*context_key]]`
        • 31255
        • 118 Posts
        That did the trick.
          Tassu, webmaster of Valokammi
          • 31255
          • 118 Posts
          Well here`s more to filter smiley How put this work on multiple contexts? Idea is that when user sets tv "nostot" to 1 (show on pages) links appear on pages.

          Now all pages which are set to show in every contexts are visible in link list. How to filter only contexts?

          Call:
          [[getResources:default=`<p><strong>Seuraa tästä Café Loimun tarjouksia ja tapahtumia!</strong></p>`? &limit=`0` &depth=`100` &parents=`0` &showHidden=`1` &includeTVs=`1` &processTVs=`1` &tvPrefix=`` &tpl=`nostot-tpl` &tvFilters=`nostot==1` &sortby=`menuindex` ]]
            Tassu, webmaster of Valokammi