Hi
I have a problem that I am trying to solve for quite a long time.
I want to display tags for all the site.
So I use the method:
$site.getPopularTags(-1, 10)
#foreach ($tag in $mytags)
<a class="tag${tag.intensity}" href="$url.tag($tag.name)">$tag.name</a>
#end
The URL points to my site + /tags/harris etc..
In the site I have the following code:
#set($pager = $model.getWeblogEntriesPager())
#set($map = $pager.getEntries())
#if ($map.keySet().size()!=0)
#foreach($day in $map.keySet())
#set($entries = $map.get($day))
#foreach($entry in $entries)
$entry.title
#end
#end
#end
But it doesn't display the entries with the tags as I would expect!
$model.getWeblogEntriesPager() - retruns an empty pager.
(I saw an example in http://blogs.sun.com/)
What do I need to change in the main blog's code so it would work?
Thanks!
Odelya YomTov