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
    Hi I want to use Hitspage, but when I installed it it doesn't create any TVs at all.

    It does create 2 snippets, HitsPage and HPCount, and also creates a plugin.

    The documentation at github says to put the snippet call in the template, which I have done:

    [[!HitsPage]]

    But then I can't get any output with {%hp-[[+id]]%}

    The documentation on github also says this, which is pretty unclear:

    IMPORTANT! To activate the plugin in this resource, you need to insert the template output tape challenge Snippets [[HPCount]]. I did it, so that no plug for lack Pars each resource.

    Am I missing the TVs? I reinstalled a couple times.

    Hope someone can help me get this working. Thanks in advance!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If the TV doesn't exist, it will be created by the HitsPage snippet if the &saveTv property is set to `true`. Since the TV's use is optional, not everyone will want or need it.

      That is a pretty much unintelligible translation. I can't figure out what it's supposed to be either.

      [ed. note: sottwell last edited this post 11 years, 6 months ago.]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 46886
        • 1,154 Posts
        [[!HitsPage? &saveTv=`true`]] should create the TV?

        I put it in the template, and it just shows 0, even after refreshing...and no TV is created.

        What about the HPCount? It says important to do something with it, but I have no idea what should be done.
          • 46886
          • 1,154 Posts
          The author has *completely* updated the earlier code, Sepia River's breakdown from 2013 seems completely out of date now. Its a snippet now rather than the two tvs when installing. So the code is probably much better but documentation is a little weaker now.

          I will ask my Bulgarian friend to figure this out, he is able to read Russian a little bit and he is good with Modx. Or maybe one of our Russian friends will jump in. And I will put the clear solution here if I get it. I need this little HitsPage/getRelated output as most popular contents if at all possible.

          When I am done there will be so many tools to push the dynamic data at my users, between this, pdoMenu and the forum tool I have provided in the Discuss section (which my php guy just did an upgrade which I will also post there). Especially if I can get more out of getRelated it will be awesome.

          I will try to document everything so clear solutions are available to everyone.

          Oops confused getResources and getRelated. Its getRelated that I think has so much potential.
            • 3749
            • 24,544 Posts
            Are you sure the plugin is not disabled? Right-click on it in the Elements tree to check.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 46886
              • 1,154 Posts
              No its active by default. That's just the kind of mistake I would make, though.

              But the issue with HPCount is probably key here, he even has an important notice about it. Its just not a proper translation.
                • 46886
                • 1,154 Posts
                Ok this is working now, I will post the solution soon. I had help, basically I didn't do the work, so need to get the steps clearly.