Tuesday, April 20, 2010, 1:26:45 AM, ABClf wrote: > I was in trouble for using (:thumblist:) in a large hidden PTV > (:myptv: long text :). > Here it is my problematic source:
> (:text: some long text, where I want images (:thumblist:) some more text:) > doesn't work when showing {$:text} ; I guess it is because of the > thumblist's « :) » you could define a markup expression for thumblist and use that inside the PTV: in config: $MarkupExpr['thumb'] = $MarkupExpr['thumblist'] = 'MXThumbList($pagename, $args, $argp)'; function MXThumbList($pagename, $args, $argp) { $suffix = (isset($args[0])) ? '' : 'list'; unset($argp[''],$argp['#']); foreach($argp as $k => $v) $opt .= " ".$k."=".$v; foreach($args as $v) $opt .= " ".$v; return FmtThumbList($pagename, $opt, $suffix, ''); } PTV example in the page: (:text: some long text, where I want images {(thumblist)} some more text:) or (:text: some text {(thumb myimage.jpg)} some more text:) thumblist parameters should work too. ~Hans _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users