List of tags
Posted: 13 February 2008 10:08 AM   [ Ignore ]
Administrator
Rank
Total Posts:  16
Joined  2005-12-12

I need to make a page that shows a list of all tags on a site alphabetically and by number of entries.

I thought I could do something like this:

{!-- MOST USED TAB --}
<div id="most_used">
<
p>{exp:tag:tags backspace="3" type="weblog" orderby="total_entries" sort="desc" limit="500"} {tag} ({total_entries})<br /> {/exp:tag:tags}</p>
</
div>

{!-- A-Z TAB --}
<div id="a-z" style="display: none;">
<
p>{exp:tag:tags backspace="3" type="weblog" sort="desc" limit="500"} {tag} ({total_entries})<br /> {/exp:tag:tags}</p>
</
div>

But it seems that exp:tags:tag requires and entry_id, because I’m not getting any output.  exp:tags:cloud doesn’t have the sort parameters that I need.  Is there a way to do this? I have a feeling I’m missing something obvious.

Thanks!

Profile
 
 
Posted: 13 February 2008 10:25 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

I’d say the Tag 2.0 Cloud loop is the best way to go… probably the only way.

For alphabetically ordering, it does this by default.

However, ordering by Number of Entries is not possible as the orderby="” parameter does not exist.

I will have to submit this as a feature request. smile

If you only have a handful of tags that does not change often, you could use the Tag:Entries loop and hardcode the Tags… but I doubt that will be the case.

 Signature 
Profile
 
 
Posted: 13 February 2008 02:09 PM   [ Ignore ]   [ # 2 ]
Administrator
Rank
Total Posts:  16
Joined  2005-12-12

Thanks Pie Man!

Profile
 
 
Posted: 13 February 2008 03:13 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

You’re welcome!

I’ll crack that whip on Mitchell to get that orderby= parameter working! LOL

 Signature 
Profile