Open uli-heller opened 9 years ago
I'm doing a tagcloud on my blog. For this, I need the number of posts per tag. I didn't find a documented way to get this number, so I'm using
db.getPublishedPostsByTag(tag).size()
within one of my gsp templates for now. The tags show up like this:
Does it make sense to create a public object and method for this? Similar to "alltags"? Or an extension to it?
Yeah that sounds like a great idea.
I'm doing a tagcloud on my blog. For this, I need the number of posts per tag. I didn't find a documented way to get this number, so I'm using
within one of my gsp templates for now. The tags show up like this:
Does it make sense to create a public object and method for this? Similar to "alltags"? Or an extension to it?