[01:32] *** ko6yq-lt has quit IRC ("Leaving.") [02:09] *** peterthoeny has quit IRC () [03:02] *** lowe has quit IRC (farmer.freenode.net irc.freenode.net) [03:02] *** Lorax_ has quit IRC (farmer.freenode.net irc.freenode.net) [03:02] *** Dae` has quit IRC (farmer.freenode.net irc.freenode.net) [03:02] *** twikibot has quit IRC (farmer.freenode.net irc.freenode.net) [03:02] *** lbjay has quit IRC (farmer.freenode.net irc.freenode.net) [03:02] *** noxx has quit IRC (farmer.freenode.net irc.freenode.net) [03:02] *** lowe has joined #twiki [03:02] *** Lorax_ has joined #twiki [03:02] *** lbjay has joined #twiki [03:02] *** Dae` has joined #twiki [03:02] *** twikibot has joined #twiki [03:19] *** Lorax has joined #twiki [03:20] *** Lorax is now known as Guest34603 [03:20] *** Lorax_ has quit IRC (Read error: 104 (Connection reset by peer)) [03:21] *** peterthoeny has joined #twiki [03:21] *** ChanServ sets mode: +o peterthoeny [03:36] *** ko6yq-lt has joined #twiki [04:03] *** Guest34603 has quit IRC (Read error: 104 (Connection reset by peer)) [04:12] *** Lorax has joined #twiki [04:13] *** Lorax is now known as Guest43670 [04:30] *** Guest43670 has quit IRC (Read error: 60 (Operation timed out)) [04:35] *** ko6yq-lt has quit IRC ("Leaving.") [04:41] *** Lorax has joined #twiki [04:42] *** Lorax is now known as Guest22350 [05:08] *** peterthoeny has quit IRC ("Connection reset by beer") [07:25] *** fr_ has joined #twiki [07:51] *** lithium has joined #twiki [10:07] *** phobi has joined #twiki [10:09] *** venmx has joined #twiki [10:10] 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 [10:11] 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, "}% [10:11] and if i put that inside topic parameter of %TAGME{tpaction="query" web="%WEB%" tag="A" topic=""}% [10:12] 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 [10:13] 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? [10:47] line feeds? [10:47] empty spaces? [10:49] ok, so the metasearch above prints for example TopicA,\nTopicB\n [10:50] but i'd like to use the string produced by metsearch as parameter for TAGME-plugin, but cannot because of the new lines [10:51] you can use normal search for that too [10:51] (if metasearch doesn't work...) [10:52] hmm, it can look into form field values? [10:52] yes at least in my version.. [10:53] so, i need to formulate the search term so that it looks into field values, but how to do that? [10:54] got it, type="query" [10:54] *** noxx has joined #twiki [10:57] ok.. [10:57] i found an antiqued %SEARCH{ "META:FORM.*Form;Field.*value=\"\"" }% [10:58] but yes, query should work fine :) [11:03] almost got it working, but a meeting intervenes, i'll be back asking about this momentarily, thank you for directing me to right path! [11:10] :) [11:24] 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=""}% [11:44] * Dae` reads up again from top... [11:44] ok.. [11:44] wasn't that the point? [11:44] to list the topics? [11:46] just put that inside the topic parameter in %TAGME% ? [11:46] so let's repeat the story so far... [11:46] lets [11:47] so i'm attempting to list topics tagged with tag X that also have form with field A having value B [11:48] so what if you put that tagme call into searches topic field? [11:48] i assume you have a tagme-plugin call that spouts out a a topic list separated by comma [11:51] 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"}% [11:52] can you just put that inside the search topic parameter? [11:52] replace the quotes accordingly [11:52] with \" [11:53] it doesn't print anything [11:54] with "s escaped or not :/ [11:54] o [11:55] damn [11:55] would have been convenient :) [11:55] yeah :) [11:56] hmm you might want to remove the ! [11:56] that only affects rendering [11:56] imho [11:57] tryingh [11:57] so now your search is looking for topics like "!TopicOne, !TopicTwo" etc... [11:59] yeah, i added that because wikiwords are turned into links, but now i realize that it is done after TAGME looks at it [11:59] :) [11:59] does it work now? [12:00] my twiki version is so old that I can't test here :/ [12:01] 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) [12:01] i'm working against 4.1.2 aswell [12:02] 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 [12:03] could it be that search doesn't have type="query" in 4.1.2? [12:04] i'm checking that... [12:04] but how to find that out, apaches error log doesn't show anything [12:05] look at the doc-pages in 4.1.2 [12:05] TWiki.VarSEARCH [12:07] so yoursite/cgi-bin/view/TWiki/VarSEARCH [12:07] look up the type parameter [12:08] found it, so no query there :/ [12:08] ok then you have to use method above I pasted earlier or go back to metasearch :P [12:09] alrighty then, one go with that meta thigy, and then i'm gonna do this client side :) [12:10] *thingy [12:10] hmm I used metasearch recently for similar thing and I don't think it put line feeds between results [12:11] i will take any words of wisdom if you have on this matter :) [12:12] i would just use the search [12:12] it is complicated but it should work [12:13] looks like I screwed up the paste earlier [12:15] hmm, im working with this %SEARCH{"META:FORM.*Form;Field.*value=\"\""}% [12:16] %SEARCH{ "META:FORM.*
;.*value=\"\"" scope="text" regex="on" nosearch="on" nototal="on" format="$topic" nosearch="" }% [12:16] trying all sorts of variations, but with this i've also only been able to find the current page [12:17] and set the topic too :P [12:17] I know, it can be painful :) [12:17] huh? [12:18] i think you might have just saved me [12:18] testing :) [12:19] remember to replace the with the form topic, with formfield, and with the value of the field.. [12:19] yes :) [12:19] and the topic="%TAGME{...}% [12:19] ok [12:19] hopefully it works :) [12:20] i think it does! thank you so much, this goes to the painful tasks hall of fame for me [12:20] now i'll just have to get it to do more than just list the names of the topic [12:22] i just wish i could search tags with that same thing; or can i? [12:22] :D [12:22] with search? [12:22] no [12:22] Tags are stored separately [12:23] they are under /your/path/to/twiki/_work_area or /your/path/to/twiki/pub/_work_area or something like that :) [12:23] yeah, i've seen that [12:27] but thank you again, this was really helpful [12:42] np [13:38] *** Guest22350 is now known as Lorax [15:06] is there the concept of roles in twiki? [15:11] *** lithium has quit IRC ("Client Exiting") [15:41] *** fr_ has quit IRC (Remote closed the connection) [16:56] *** lbjay is now known as lbjay_away [16:58] *** venmx has quit IRC () [17:21] *** lbjay_away is now known as lbjay [18:26] *** ko6yq-lt has joined #twiki [21:18] *** peterthoeny has joined #twiki [21:18] *** ChanServ sets mode: +o peterthoeny [23:09] *** peterthoeny has quit IRC ("Connection reset by beer") [23:31] *** ScarEye_ has quit IRC (Read error: 104 (Connection reset by peer)) [23:39] *** ScarEye has joined #Twiki