We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36645
    • 2 Posts
    found, while only working for revo CSS Star Raring 2.0.rc1.
    Voting on the page works fine. Here is a template for output:
    [[! starRating? & starId =`[[* id]] `& useSession =` 1 `]]


    In general, the question is more about getRecoucers.

    Star_rating written into the table modx_star_rating, instead of the expected I modx_site_tmplvars with TV.
    this type of table: id | star_id | group_id | vote_total | vote_count.

    How to sort by popularity by the values of the output table:

    [[! getResources? & tpl = `blogPost2` & parents = `7` & includeTVs = `1`
    & processTVs = `1` & sortby =`???`]]

      • 33968
      • 863 Posts
      I don't think that's possible as getResources will sort by a resource field or template variable, but not by a custom value.

      What you could do is have the starRating snippet save its value to a starRating TV, then you could sort by that TV...
        • 36645
        • 2 Posts
        Until now, I used ready-made solutions.
        Is it possible to avoid working with the code snippet?
        I do not understand this.
          • 33968
          • 863 Posts
          Nope, going to have to code it smiley