Tags:
create new tag
view all tags

Question

Is it currently possible to use the wildcard in Tag querys? I am building a database of topics that will be taged based on a pre-established numbered heirarchy such tha a general topic under the 08 section would be taged "08" while a more specific topic might be tagged 0815 or 081515 depending on the specificity.

Currently my code reads "__Note:__ No topics found tagged with "08*"" and works when I remove the "*" in tag="08*" but does not understand "*" as a wildcard value. What I would like is a list of all topics taged with numbers starting "08" so the query would return the 0815 and the 081515 topics as well.

If this is not possible, can you offer some pointers on where/how to modify the existing code?

Thanks

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins

-- BenjaminDalton - 02 Apr 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I assume this is a TagMePlugin specific question.

In TagMePlugin.pm, look for sub _queryTag. In there is a if( $tag eq $qTag ) that needs to be fixed if you want to support wildcards.

If you find a solution please consider writing a patch (also for the docs) and attach it to the TagMePluginDev topic.

-- PeterThoeny - 03 Apr 2007

Sorry, it is a TagMePlugin question. My code writting ability is next to nothing at this point, are there any guides that could enlighten me on intriducing wildcards into a query? Any other sections of code that do this for other plugins for example?

-- BenjaminDalton - 04 Apr 2007

Unfortunately I do not have the time at the moment to make this small change. You can add this as an enhancement request at the top of the TagMePluginDev topic.

-- PeterThoeny - 04 Apr 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-04-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.