[TYPO3] vge_tagcloud and relational database

Cyrill Helg phlogsmailinglists at gmail.com
Thu Aug 28 21:19:55 CEST 2008


Am Thursday 28 August 2008 schrieb Francois Suter:
> Hi Cyrill,
>
> > I'm planning an extension that will make use of vge_tagcloud. As far as I
> > understood the documentation I would just use a specific field from my
> > "items" table to be valued by the tagcloud extension. Now if users are
> > able to create own categories, its better to have another table listing
> > the available categories and linking to this with uid's.
> >
> > My question, is it possible to use vge_tagcloud in such a situtation? So
> > it first reads just id's and then assigns those with a text from another
> > table?
>
> After reading my own documentation ;-) my answer is yes. You can let the
> tagcloud read the id's and then use the "postProcessRawKeywords" hook.
> In this hook you receive a list of all keywords found, i.e. in your case
> all id's. You can then query your categories table inside the hook and
> replace id's with the corresponding category name.

Ok sounds great, I would come back to you if I've any problems :)

Thanks so far, and that extensions looks really good!

>
> I remember someone doing something similar, but the other way round:
> matching keywords to id's of glossary entries. So you should be able to
> achieve what you want.
>
> Cheers




More information about the TYPO3-english mailing list