09

Dic

Plugin: Fast Tag Cloud for MTOS

English

Descripción

Fast Tag Cloud (FTC) es un plugin para MTOS, el cual ofrece una Nube de etiquetas muy rápida, en comparación con la que viene normalamante en MTOS.

Uso

El plugin agrega 5 tags a MTOS, que son equivalentes a las que normalmente se utilizan para generar la nube de etiquetas. Estas tags son:

Las etiquetas

<mt:ftc> ... </mt:ftc> que es el equivalente a <mt:tags> ... </mt:tags>.
Esta es la encargada de generar la nube de etiquetas, todas las demás tags deben de ir dentro de este block. Las opciones o modificadores que tiene este block son las siguientes:
 
  • maxrank:  el maximo rank que puede tomar una etiqueta. Por default 6.
  • limit: Limite superior de la cantidad de etiquetas a mostrar. Por default 20.
  • order: Orden de las etiquetas,puede ser: "rank" para el rank; "alpha" para ordenarlas de forma alfabetica. el default es alpha.

<mt:ftcrank> que equivale a <mt:tagrank>.
Es el rank que tiene la etiqueta en el blog.

<mt:ftcname> equivalente a <mt:tagname>
El nombre de la etiqueta

<mt:ftclink> equivalente a <mt:tagsearchLink>
El link de busqueda de la etiqueta.

<mt:count> equivalente a <mt:tagcount>
La cantidad de objetos que contienen la etiqueta.

El ejemplo más básico sería el siguiente:

<mt:FTC>
            <li class="rank-<$mt:FTCRank max="10"$>"><a href="javascript:void(0)" onclick="location.href='<$mt:FTCPath$>';return false;" rel="tag"><$mt:FTCName$></a></li>
</mt:FTC>

aunque en realidad no hay mucho más que agergar, solamente el uso de los modificadores, que seria de la siguiente manera:

<mt:FTC limit="10">
....
</mt:FTC>
 
para 10 etiquetas solamente o

<mt:FTC maxrank="10">
 ....
</mt:FTC>
 
para tener hasta un rank de 10.

o combinadas las dos como sería:

<mt:FTC limit="15" maxrank="7">
......
</mt:FTC>


Instalación

1.- Descarga el plugin.
2.- Navega hasta la carpeta de plugins de MTOS.
3.- Sube ahí la carpeta llamada FastTagCloud.

Ahora lo único que te falta es modificar el widget de la Nube de Etiquetas y publicar tu blog para que los cambios tengan efecto.



Description

Fast Tag Cloud (FTC) is a plugin for MTOS, which provides a Fast Tag Cloud, compared with the default Tag Cloud widget.


How to use


FTC adds 5 template tags, that you can use to create a tag cloud, changing the original for the new ones.


The template tags

<mt:ftc> ... </mt:ftc> replaces <mt:tags> ... </mt:tags>.
Inside this block, you put the other templates tags. It have three attributes:
 
  • maxrank:  the max rank to use. 6 by default .
  • limit:Upper limit in the tag list to show. 20 by default.
  • order: the order of the tags, it can be "rank" or "alpha". alpha is the default.

<mt:ftcrank> replaces <mt:tagrank>.
The rank of the Tag.

<mt:ftcname> replaces <mt:tagname>
The name of the Tag

<mt:ftclink> replaces <mt:tagsearchLink>
The search link of the tag.

<mt:ftccount> replaces <mt:tagcount>
The count of objects with the tag.

This is an example of the use of FTC:

<mt:FTC>
            <li class="rank-<$mt:FTCRank max="10"$>"><a href="javascript:void(0)" onclick="location.href='<$mt:FTCPath$>';return false;" rel="tag"><$mt:FTCName$></a></li>
</mt:FTC>

Actually there isn't so much more to say about it, just the use of the attributes:

<mt:FTC limit="10">
....
</mt:FTC>
 
or

<mt:FTC maxrank="10">
 ....
</mt:FTC>
 
or mixing both

<mt:FTC limit="15" maxrank="7">
......
</mt:FTC>


Installation

1.- Download the plugin file.
2.- Unzip the file.
3.- Upload the FastTagCloud folder into the plugins directory.

Now just modify the TagCloud widget then republish your blog and you are done.






2 TrackBacks

URL de TrackBack: http://mixelandia.com/MTOS/mt-tb.cgi/961


En está página podras encontrar todo los plugins que he realizado, separados por plataforma.Movable Type y MTOS LightBox Este plugin agrega el rel="lightbox" a las imagenes al momento de agregarlas a tus entradas, así como los scripts necesarios para a... Leer más

26 de Agosto 2009 a las 12:22 PM
en Codeine. desde Tylenol codeine side effects.

Robitusin with codeine. What is apap codeine. Codeine. Apap codeine 300 30. Liquid codeine. Leer más

3 comentarios

What makes it fast?

Thanks for this plugin. The description above doesn't explain what makes this plugin "fast" compared to the default mt:Tags method. Can you elaborate on that? Thx.

Hi Mark

I didn’t write nothing about how the plugin works, because usually users doesn’t care about how the things works internally, but I’ll try to explain how the plugin functions.


May be you have noted that if you put the tag cloud (using mt:Tags) in all the pages of the blog, the rebuild time suddenly goes around 40 minutes or even more (depends on the number of entries and pages in the blog), and in the manual of MT says that you must avoid use the tag cloud in that way.

When I saw this, I thought, hmmm I could try to make a Tag Cloud, that doesn’t makes the blog to take a lot of time to publish.


When you use the block mt:ftc, it makes an sql query, retrieving the tags and the number of objects that use the tag. Then it iterates twice over the result of the query, the first to obtain the bigger number, and the second to populate the rank of the tag.


Once the plugin generates all the content of the tag cloud, it caches the result, so the next calls to mt:ftc will return the cached content, instead of make again all the work of generate the tag cloud code.


I don't know how exactly mt:tags works internally, but i guess it does a lot of database queries per call, but i not so sure.


Kind Regards

yo no ablo en ingles asi q ablen en spanish

Escribir un comentario