Skip Menu |

This queue is for tickets about the RTx-Tags CPAN distribution.

Report information
The Basics
Id: 41202
Status: resolved
Priority: 0/
Queue: RTx-Tags

People
Owner: Nobody in particular
Requestors: paul_nijjar [...] yahoo.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.12



Subject: Tag Cloud prints entries from all custom fields named "Tag"
Date: Mon, 24 Nov 2008 22:54:11 -0800 (PST)
To: bug-RTx-Tags [...] rt.cpan.org
From: Paul Nijjar <paul_nijjar [...] yahoo.ca>
Dear Jerrad, This is pretty obscure. I have two custom fields named "Tags" -- one for Tickets and one for RTFM entries. The tag cloud in "Simple Search" picks up entries from both of these custom fields, when I think the correct behaviour is to pick up entries only from the Ticket field. My solution was to add the following to the SQL statement in plugins/RTx-Tags/html/Callbacks/RTx-Tags/Search/Simple.html/PreForm, but I am not sure what else this might break. I changed the condition of the SQL statement from WHERE CustomFields.Name='Tags' AND ObjectCustomFieldValues.Disabled=0 to WHERE CustomFields.Name='Tags' AND ObjectCustomFieldValues.Disabled=0 AND CustomFields.LookupType='RT::Queue-RT::Ticket' (Mind you, I would not mind tag cloud searches in RTFM, but that is a different wishlist item.) - Paul Show quoted text
__________________________________________________________________ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Functions as advertised; perldoc RTx::Tags. It is not my place to dictate what type of object one can tag.
On Tue Nov 25 01:54:31 2008, paul_nijjar@yahoo.ca wrote: Show quoted text
> (Mind you, I would not mind tag cloud searches in RTFM, but that is a > different wishlist item.)
Have you tried the using/adapting the TagCloud in 0.08?
Nevermind, once again, I forgot to include the TagCloud element in 0.08. Will be in .10. Waiting to see if patch for HTML::TagCloud <http://rt.cpan.org/Ticket/Display.html?id=41257> is accepted first. P.S. The module shows all customfileds named Tags (with an s). You could rename the field on those objects you do not want to be shown in the cloud, they'd still be simple searchable, or wait for something like TODO item: Modify homepage component? Configurable: Show global tags and/or for selected queues Or, I might eventually let one set an option in SiteConfig to determine the types of objects to count tags for, but hardcoding to Tickets is not the right thing. Some sites with many users may tag them for one reason or another...
Show quoted text
> WHERE CustomFields.Name='Tags' AND ObjectCustomFieldValues.Disabled=0 > AND CustomFields.LookupType='RT::Queue-RT::Ticket'
What is ObjectCustomFieldValues.ObjectType for RTFM thingies? This seems to be a saner "RT::Ticket" for normal stuff...
On Tue Nov 25 09:46:21 2008, JPIERCE wrote: Show quoted text
> Functions as advertised; perldoc RTx::Tags. > > It is not my place to dictate what type of object one can tag.
Actually, I now realize its relatively pointless to count non-Tickets, but the forthcoming version will contain several configuration options to allow one to control this and related behavior.
Fixed in 0.12, but wait until 0.14 reaches a mirror near you.