You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Claudio Miranda <cl...@claudius.com.br> on 2008/01/21 20:54:43 UTC
Display tags for each entry
I see tag cloud support for roller 4, but I want to display tag names, for
each entry, so which template shoud I use to print each tag to its
respective entry.
See how blojsom does that: Tags: java performance
http://www.claudius.com.br/blog/claudio/2007/11/10/450-GB-de-HEAP
* I started to migrate from blojsom to roller.
-----
Claudio Miranda
http://weblogs.java.net/blog/claudio
http://www.claudius.com.br/blog
--
View this message in context: http://www.nabble.com/Display-tags-for-each-entry-tp15005026s12275p15005026.html
Sent from the Roller - User mailing list archive at Nabble.com.
Re: Display tags for each entry
Posted by Dave <sn...@gmail.com>.
On Jan 21, 2008 2:54 PM, Claudio Miranda <cl...@claudius.com.br> wrote:
> I see tag cloud support for roller 4, but I want to display tag names, for
> each entry, so which template shoud I use to print each tag to its
> respective entry.
>
> See how blojsom does that: Tags: java performance
> http://www.claudius.com.br/blog/claudio/2007/11/10/450-GB-de-HEAP
>
> * I started to migrate from blojsom to roller.
Somewhere in your _day template, within the loop that emits your
entries add this:
Links:
#foreach($tag in $entry.tags)
<a href="$url.tag($tag.name)" title="$tag.count">$tag.name</a>
#end
- Dave
Re: Display tags for each entry
Posted by Simon Haslam <si...@yahoo.co.uk>.
I've downloaded the Roller 4 themes bundle from roller.dev.java.net. Searching the Weblog.vm
templates I see tag clouds in: rational, naturalbeauties and frontpage. Note in rational it says
you have to uncomment the following lines:
## <h3>Tag Cloud</h3>
## <p>
## #set($mytags = $model.weblog.getPopularTags(-1, 30))
## #foreach ($tag in $mytags)
## <a class="tagcloud${tag.intensity}" href="$url.tag($tag.name)"
title="${tag.count} posts">$tag.name</a>
## #end
## </p>
You could try switching to Natural Beauties to see if the tag cloud works as you expect and then
you can incorporate the above into your own template.
HTH
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com