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
--
BenjaminDalton - 02 Apr 2007
Answer
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