hello again, i'm trying to list topics that have a certain value in form field on a page which is tagged with tag A i can get the list of matching pages with meta search like this %METASEARCH{type="field" name="Status" value="%URLPARAM{"status" default="X|Y|Z"}%" web="%WEB%" format="!$topic, "}% and if i put that inside topic parameter of %TAGME{tpaction="query" web="%WEB%" tag="A" topic=""}% it should work to my understanding, but metasearch for some reason adds line feeds between items, so the outer %TAGME% isn't recognized as a tag anymore so i was wondering if i can remove the linefeeds produced by METASEARCH or are there any string manipulation operations using which i could replace the linefeeds with empty string for example? line feeds? empty spaces? ok, so the metasearch above prints for example TopicA,\nTopicB\n but i'd like to use the string produced by metsearch as parameter for TAGME-plugin, but cannot because of the new lines you can use normal search for that too (if metasearch doesn't work...) hmm, it can look into form field values? yes at least in my version.. so, i need to formulate the search term so that it looks into field values, but how to do that? got it, type="query" ok.. i found an antiqued %SEARCH{ "META:FORM.*Form;Field.*value=\"\"" }% but yes, query should work fine :) almost got it working, but a meeting intervenes, i'll be back asking about this momentarily, thank you for directing me to right path! :) Back again, this query finds only the name of the current topic, any ideas? %SEARCH{"Status = 'Something'" type="query" web="%WEB%" nonoise="on" format="!$topic" separator=", " newline=""}% ok.. wasn't that the point? to list the topics? just put that inside the topic parameter in %TAGME% ? so let's repeat the story so far... lets so i'm attempting to list topics tagged with tag X that also have form with field A having value B so what if you put that tagme call into searches topic field? i assume you have a tagme-plugin call that spouts out a a topic list separated by comma ok, so with this i can print out the topics %TAGME{tpaction="query" web="%WEB%" tag="Music" format="!$topic" separator=", " norelated="on" nostatus="on" nototal="on"}% can you just put that inside the search topic parameter? replace the quotes accordingly with \" it doesn't print anything with "s escaped or not :/ o damn would have been convenient :) yeah :) hmm you might want to remove the ! that only affects rendering imho tryingh so now your search is looking for topics like "!TopicOne, !TopicTwo" etc... yeah, i added that because wikiwords are turned into links, but now i realize that it is done after TAGME looks at it :) does it work now? my twiki version is so old that I can't test here :/ nope, nothing still.. i'm starting to think this is somekind of configuration issue, because i have my personal installation where i think that kind of query is working (but it is newer also) i'm working against 4.1.2 aswell or to rephrase, that query works in 4.3, but not in 4.1.2 which is the target, since the customer is using that could it be that search doesn't have type="query" in 4.1.2? i'm checking that... but how to find that out, apaches error log doesn't show anything look at the doc-pages in 4.1.2 TWiki.VarSEARCH so yoursite/cgi-bin/view/TWiki/VarSEARCH look up the type parameter found it, so no query there :/ ok then you have to use method above I pasted earlier or go back to metasearch :P alrighty then, one go with that meta thigy, and then i'm gonna do this client side :) *thingy hmm I used metasearch recently for similar thing and I don't think it put line feeds between results i will take any words of wisdom if you have on this matter :) i would just use the search it is complicated but it should work looks like I screwed up the paste earlier hmm, im working with this %SEARCH{"META:FORM.*Form;Field.*value=\"\""}% %SEARCH{ "META:FORM.*
;.*value=\"\"" scope="text" regex="on" nosearch="on" nototal="on" format="$topic" nosearch="" }% trying all sorts of variations, but with this i've also only been able to find the current page and set the topic too :P I know, it can be painful :) huh? i think you might have just saved me testing :) remember to replace the with the form topic, with formfield, and with the value of the field.. yes :) and the topic="%TAGME{...}% ok hopefully it works :) i think it does! thank you so much, this goes to the painful tasks hall of fame for me now i'll just have to get it to do more than just list the names of the topic i just wish i could search tags with that same thing; or can i? :D with search? no Tags are stored separately they are under /your/path/to/twiki/_work_area or /your/path/to/twiki/pub/_work_area or something like that :) yeah, i've seen that but thank you again, this was really helpful np is there the concept of roles in twiki?