[TYPO3] Exclude page not working in vge_tagcloud

Francois Suter fsuter at cobweb.ch
Thu Jul 31 16:30:34 CEST 2008


Hi,

> Most things work fine, except for the tt_news sysfolder (the one 
> containing news items) being listed as a page result in vgetagcloud_pi2.
> My aim is to filter the page uid (here: 123) of this sysfolder from 
> tag_pages, but most of my attempts seemed not to be smart enough ;-)
> Maybe you have an idea.

After some experimentation, I can say that it's not a bug.

The problem is that the pi2 plugin is not suited to what you want to do. 
The pi2 plugin displays a list of pages, based on the pid's that the pi1 
plugin collected while gathering the keywords.

This will work absolutely fine with pages and content elements. Now you 
query pages and news items. The sysFolder containing your news is indeed 
filtered out of the pages query, but is the one and only pid collected 
with the tt_news query.

So you can't use the pi2 plugin in this case. It will work only for 
items which have a pid that makes sense. In the case of tt_news items, 
the pid is just their storage place.

> My workaround atm is to use the processTagData hook to remove the 
> sysfolder uid from $data['tag_pages'], but this is not very satisfying 
> to me.

Your work around may be the only solution or else don't use the pi2 
plugin, but some other plugin that makes more sense in this case, like 
indexed search.

I hope my explanations are clear enough.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-english mailing list