List Info

Thread: Re: Tag clouds




Re: Tag clouds
country flaguser name
United States
2007-05-08 07:11:11

On May 4, 2007, at 3:42 AM, theRemix wrote:

> On Fri, 2007-05-04 at 00:55 -0400, Brandon Keepers
wrote:
>> On May 3, 2007, at 7:09 PM, theRemix wrote: >
> what is the  
>> difference between using a liquid plugin for
mephisto for > tag  
>> clouds from http://mephisto.stikipad.com/help/show/Liquid+Plugins 

>> > https://modzer0.cs.uaf.edu/repos/hank/code/rails/mephi
sto/ >  
>> mephisto_tag_cloud/ > > {% for tag in
site.tags %} > {{ tag |  
>> size_tag }} > {% endfor %} > > > and
just doing this: > > <ul  
>> id="tag_cloud"> > {% for tag in
site.tags %} > <li class="tag 
>> {{ tag | tagged_articles | > size }}">{{
tag | link_to_tag }}</li>  
>> > {% endfor %} > </ul> > > >
> maybe i'm just doing it wrong. but  
>> when i try the {{ tag | size_tag }} > my app
breaks... > > do i  
>> really need the plugin anyway? I haven't tried the
plugin, but I  
>> know I ran into huge performance issues using the
second method.  
>> Once I started getting more articles and traffic,
my server would  
>> slow to a crawl. Even though all the pages are
cached, it would  
>> take well over a minute for each page to generate
the cache  
>> because it has to load each article for each tag,
just to get the  
>> count. Brandon
>
> thanks brandon, but when i try to use the first method,
i don't get  
> the desired result. i've read the README,
>
> {{ tag | size_tag }}
>
> does not print the size of the tag, instead it prints
the tag name...
>
> any ideas?

I've never used the plugin you're referring to, but looking
at the  
source, it looks like it is intended for building tag
clouds.  It  
prints out the tag wrapped in a span, specifying the
font-size.  It  
doesn't look like there is a way to just get the count.

Brandon

--~--~---------~--~----~------------~-------~--~----~
Mephisto: http://mephistoblog.com |
Mephisto Help: http://mephisto.stikipad
.com

To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )