ranking by category
Posted: 24 June 2007 02:45 PM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2007-06-13

hi guys
sorry if I’m a pest but I’m trying to figure ths out: can I rank my entries and filter by category?

looks like I have a working rating system set up http://iphonewidgetlist.com/index.php/ (on the mac, the stars “light” up on roll over. because I’m using image form fields, this effect won’t work on IE).

now, if you chose a category (only “social/sharing” and “bookmarking” work for now), it will chose entries that belong to that given category sorted by date.
I would like to re-order this list by “highest ranking” (see link at top). will that work?

looking at the “ranking” extension, it seems I can sort by weblog.

thanks,

=p

Profile
 
 
Posted: 25 June 2007 03:19 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Very nice… would you mind sharing some of your code? I like the combined display / rating.

now, if you chose a category (only “social/sharing” and “bookmarking” work for now), it will chose entries that belong to that given category sorted by date.
I would like to re-order this list by “highest ranking” (see link at top). will that work?

Have you tried {exp:rating:rankings}? It states that “just about all of the parameters avaliable in the {exp:weblog:entries} tag are available”, so I’d try category= first.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 25 June 2007 09:30 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  12
Joined  2007-06-13

yea. i think it works!
I guess my trouble is my URL structure… /index.php/ranked/ works (I have the ranking code in a template called “ranked") but /index.php/category/cat_name/ranked/ won’t work.

Profile
 
 
Posted: 25 June 2007 09:56 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

What if you try

/index.php/ranked/category/cat_name/

or even

/index.php/ranked/C12

?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 25 June 2007 10:04 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  12
Joined  2007-06-13

/index.php/ranked/category/cat_name/

seems to work.

thanks

Profile
 
 
Posted: 25 June 2007 10:09 AM   [ Ignore ]   [ # 5 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

That’s good news wink Great.

 Signature 

Ingmar Greil

Profile