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

    Having some teething issues with getResources...

    1. Can getResources be called within the content area of a document because i can’t get it to work with a simple call such as [[!getResources? &parents=`10` &limit=`3` &tpl=`newsTpl` &includeContent=`1`]], where the parent container is 10 and the chunk is a simple <div class="news-list">[[*content]]</div>, neither does the call appear to work when placed in the template?

    Thanks for any help

    j
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 26016
      • 561 Posts
      Hi Janice,
      Teething... I like that!

      I would suggest trying the plus sign before content in your template, like so:

      <div class="news-list">[[+content]]</div>


      Other than that, your call looks great as far as I can tell.

      Cheers, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 36549
        • 572 Posts
        that simple eh, a ’+’ in the document and a ’*’ in the template wink
        Thanks for your help
          www.9thwave.co.uk
             WEB | DESIGN | PRINT