We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17197
    • 2 Posts
    I have a template for getresources snippet. In tpl I have a calling another snippet (starrating) width parameter &starId=`[[+id]]`. In modx 2.1.1 I haven’t problem but in 2.1.2 I should to write <!--[[+id]]--> else [[+id]] is null or not correct... if I remove <!--[[+id]]--> than snippet starrating will not working

    <!--[[+id]]-->
    [[!starRating? &starId=`[[+id]]` &maxStars=`7` &starTpl=`star_rating_tpl_index` &useCookie=`true` &cookieExpiry=`608400`]]

    MODX Revolution 2.1.2-pl (traditional)
    php 5.2.17
    mysql 5.1.55
      • 4172
      • 5,888 Posts
      try cached:

      [[starRating? &starId=`[[+id]]` &maxStars=`7` &starTpl=`star_rating_tpl_index` &useCookie=`true` &cookieExpiry=`608400`]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 17197
        • 2 Posts
        when it cached all be ok, but I have snippets that sholud be uncached... It is bug or feature???
        • It’s an unexpected bug introduced in 2.1.2 that resulted from fixing a more serious bug with caching the results of non-cacheable tags that were nested inside cacheable tags. A solution is being researched.