Want a permanent top 10 list to appear wherever I put it! 
Posted: 16 April 2008 04:12 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2008-04-08

Hi everyone,

I have a template called “top10” which I’m using as an include to put in wherever I want the top 10 rated items to appear…

Now I’m sure I’m missing something but why would whatever this top10 include change depending on where I put it?

this is the code I’m using, which works great on the homepage…

<tr>
 <
td><strong>Rating</strong></td>
 <
td><strong>Track</strong></td>
</
tr>

{exp:rating:rankings limit="10" form_name="review"}
<tr>
 <
td>{exp:rating:stats entry_id="{entry_id}" theme="default" precision="1" thousands="," fractions="."}{avg_rating}{/exp:rating:stats}</td>
 <
td >{song_title}<br/>
 
{song_artist}<br/>
<
a href="{title_permalink="start/music_comment"}">&raquoread comment rate</a></p></td>
</
tr>

{/exp:rating:rankings}

but if I put this code somewhere else, such as in a comment preview template, nothing but the table outline is rendered…

Am I missing something really obvious? I thought that since I’d specified which form the ratings should come from, I thought the results would render wherever!

Any advice appreciated!

thanks

Profile
 
 
Posted: 16 April 2008 06:33 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

dynamic="off"

?

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 16 April 2008 06:46 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2008-04-08

thank-you! smile

Profile