I thank to those who reply to private my email, but even though I tried
a couple of different things instead of '\n' it does not work.
Here is a mockup recipe with this feature, can any of you guys make it work?
#cookbook/querypst.php:
<?php if (!defined('PmWiki')) exit();
Markup('querypst', 'directives', '/\\(:querypst (.*):\\)/e',
"querypst('$1')");
function querypst($in){
$out = '|| border = 1';
$out .= "\n".'|| abc || def ||';
$out .= "\n".'|| ekd || def ||';
return $out;
}
#local/config.php:
include_once('cookbook/querypst.php');
10/05/2011 16:51, Oguz Altun yazmış:
I am writing a very simple custom directive (:querypst ... :) that will
make querying a pmwiki simple table possible. I select the rows I like,
and join back them to a pmwiki simple table, and return back.
Like this:
function querypst($in){
...
$out .= $header_line;
...
$out .= '\n'.$a_good_line;
...
$out .= '\n'.$another_good_line;
...
return $out;
}
I am almost there, but that '\n' does not work. In the wiki page, I see
a table with a single long row. I tried %0a instead of '\n', too,
without success.
What should I use instead of '\n'?
thx.
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
--
Arş.Gör.Dr. Oğuz Altun
Öğrenci Projeleri Koordinatörü
Proje Belgeleri Dizini: http://www.ce.yildiz.edu.tr/doc.php?cat=2
Proje Takvimi: http://www.ce.yildiz.edu.tr/getfile.php?id=791
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users