We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46886
    • 1,154 Posts
    Hello, I am trying to use Hits, and having a bit of trouble.

    I don't get any output, but the page loads and I think the problem is the getResources template. In the examples, there is no sample template, and I don't know what to put in there, embarrassed to say.

    Here is what I have got:

    [[Hits?
    &parents=`20`
    &limit=`5`
    &depth=`20`
    &outputSeparator=`,`
    &chunk=`hitID`
    &toPlaceholder=`hits`]]

    [[getResources?
    &parents=`-1`
    &resources=`[[+hits]]`
    &tpl=`myPostTpl`]]

    I have the chunk called hitID, and I made myPostTpl, but just put a couple words in there to see if it is called. Those words do not show up at all, I get a blank template. Could someone advise please?