Yes, I took velocity code from the template user guide and I've
realized that what happens is different... sorry. Here is the code:
#set($mytags = $model.weblog.getPopularTags(-1, 50))
#foreach ($tag in $mytags)
<a class="tag s${tag.intensity}" href="$url.tag($tag.name)" title="$tag.count">
$tag.name
</a>
#end
What happens is that the tag cloud is showing results from entries
that has not been published, why?
Raúl F.
On Nov 29, 2007 6:57 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> On Nov 29, 2007 6:33 PM, Raúl Fuenzalida <[EMAIL PROTECTED]> wrote:
> > Hello. I've added a tag cloud to my weblog =) but when I click on a
> > tag which has more than one use, the result shows only the last entry
> > that has used the tag. To see the what happen go to
> > http://www.transitorio.cl/weblog/page/meta and click one of the big a
> > tags.
> >
> > The velocity template that I've used to the weblog entries navigation, is
> > this.
> >
> > #set($pager = $model.getWeblogEntriesPager())
> >
> > <ul id="navegacion">
> > <li id="Acerca">
> > <a href="$url.page('acerca')">Acerca</a>
> > </li>
> > <li id="Meta">
> > <a href="$url.page('meta')">Meta</a>
> > </li>
> >
> > #if ($model.permalink)
> > #if ($pager.prevLink)
> > <li id="TituloAnterior">
> > <a href="$pager.prevLink">Título Anterior</a>
> > </li>
> > #end
> > #if ($pager.nextLink)
> > <li id="TituloSiguiente">
> > <a href="$pager.nextLink">Título Siguiente</a>
> > </li>
> > #end
> >
> > #elseif ($model.results)
> > #if (!$pager.prevLink && !$pager.nextLink)
> > <li id="NavCubierta"></li>
> > #end
> > #if ($pager.prevLink)
> > <li id="BusquedaAnterior">
> > <a href="$pager.prevLink">Busqueda Anterior</a>
> > </li>
> > #end
> > #if ($pager.nextLink)
> > <li id="BusquedaSiguiente">
> > <a href="$pager.nextLink">Busqueda Siguiente</a>
> > </li>
> > #end
> >
> > #else
> > #if ($pager.prevLink)
> > <li id="TituloSiguiente">
> > <a href="$pager.prevLink">Título Siguiente</a>
> > </li>
> > #end
> > #if ($pager.nextLink)
> > <li id="TituloAnterior">
> > <a href="$pager.nextLink">Título Anterior</a>
> > </li>
> > #end
> >
> > #end
> > </ul>
> >
> > I don't see what i've missed, can someone please tell me what I've
> > done wrong? Thanks in advance and thanks.
>
> I don't understand what that code is supposed to do.
> Can you post the code for the "meta" page?
>
> - Dave
>