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

    I trying to get 5 top rated documents. Everithing is ok, but i have one question - how i can get fields and TV of result documents in top rated template? Is it possible?

    Thanks!
      DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

      Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

      [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
      • 2912
      • 315 Posts
      Great work and love the snippet. Thanks.
        BBloke
        • 2912
        • 315 Posts
        Would anyone know how I could change the output for the Top Rated list. I noticed the place holder [+atr.results+] but I can’t find anything that shows how to move each column of the table huh .

        Thanks
          BBloke
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          I don’t seem to get the top rating option to work... I have about 40 separate docs that can be rated and I rated 4 to test. The rating is in a table called modx_atRating_pages but it’s saying the tables do not exist... could someone help?



          [!AnythingRating? &define=`1` &atrGrp=`pages` !]
          [!AnythingRating? &getTopRated=`1` &topDir=`worst` &atrGrp=`pages` &topNb=`3` &topTpl=`@FILE:assets/snippets/anythingRating/templates/topRated.tpl.html` &topTable=`atRating_pages` !]

            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            Hi,

            I’m wondering if you can help with validation using the ATR snippet. Some of the errors I receive are as follows...

            reference to external entity in attribute value.
            …urn false;" href="/home?q=home&amp=&d=&atrGrp=servers&atrId=Jalalabad&rating=


            general entity "d" not defined and no default entity.
            …turn false;" href="/home?q=home&amp=&d=&atrGrp=servers&atrId=Jalalabad&rating

            entity was defined here.
            …eturn false;" href="/home?q=home&amp=&d=&atrGrp=servers&atrId=Jalalabad&ratin


            Is there a way to make this validate with Strict 1.0?

            Thanks, Ross
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              Anyone available to help for the 2 posts?
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 2912
                • 315 Posts
                Quote from: rossco at Aug 09, 2008, 12:39 PM

                I don’t seem to get the top rating option to work... I have about 40 separate docs that can be rated and I rated 4 to test. The rating is in a table called modx_atRating_pages but it’s saying the tables do not exist... could someone help?



                [!AnythingRating? &define=`1` &atrGrp=`pages` !]
                [!AnythingRating? &getTopRated=`1` &topDir=`worst` &atrGrp=`pages` &topNb=`3` &topTpl=`@FILE:assets/snippets/anythingRating/templates/topRated.tpl.html` &topTable=`atRating_pages` !]



                Here’s my topRating snippet call. I’ve already pre-defined the category on another page so I’ve omitted the first line.

                [!anythingRating? &getTopRated=`1` &atrGrp=`IL2MDBVotes` &topNb=`100` &topTable=`site_content` &topIdField=`id` &topTitleField=`longtitle` &topTableField=`site_content` &topTitle=`pagetitle` &_topTpl=`@FILE:assets/snippets/anythingRating/templates/il2mdb_topRated.tpl.html` &topLinkField=`alias`!] 


                Looking at your code I would amend your parameter: &topTable=`atRating_pages` to &topTable=`site_content`. My understanding of this is that it pulls the information to create the page details from the declared table. See http://il2mdb.montydan.com/most-rated for example page.

                Do you have a link to your page so I can see what is happening?

                Hope it helps.
                  BBloke
                  • 1841
                  • 141 Posts
                  Hello, Thank you for a fantastic Snippet, works really well. I have a question though: Does anyone know if you can display the "Top Rated" without it being displayed in a table. I wanted a list with just picture, title and votes but cannot seem to get it working outside of a table...

                  Any Ideas??
                    • 5811
                    • 1,717 Posts
                    Does anyone know if you can display the "Top Rated" without it being displayed in a table. I wanted a list with just picture, title and votes but cannot seem to get it working outside of a table... Any Ideas??
                    For that simply adapt the template templates/topRated.tpl.html with ul/li html tags. Re-use the used placeholders.
                      • 5811
                      • 1,717 Posts
                      @BBloke

                      It’s a pleasure to see AnyRating in action on your site.
                      As I have still some css issues with IE6 and maxigallery integration I have postponed this delivery, but may be it’s time to publish it.