Hi John On 2010-02-05 09:37, John McClure wrote: > I've changed L154 of SMW_QueryPrinter.php to: > -------------- > # $result = '[[SMW::off]]' . $wgParser->replaceVariables($result) . > '[[SMW::on]]'; //old line > $result = $wgParser->replaceVariables($result); > if( chr(13) == substr($result,0,1) ) //if there is an initial \r > $result = substr($result,2); //skip over the initial \r\n > -------------- > and it seems to work fine, giving my exactly as expected, that is, after > adjusting the initial query to: > {{#ask: [[Business:+]] > [[Industry::{{FULLPAGENAME}}||<q>[[:Category:+]][[{{#var:industries|+}}]]</q>]]} > } > > Could someone tell me whether this change to SMW_QueryPrinter.php is a BAD > IDEA? What is the impact on SMW::parsePropertiesCallback where these tags seem > (most) operative, via SMW::smwgStoreAnnotations?
I don't know, but I'd like to :) Currently I use an ugly hack to remove those markers via StringFunctions: {{#replace:{{#replace: <query> |[[SMW::off]]|}}|[[SMW::on]]|}} Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel