[pmwiki-users] Attachlist configuration
Petko Yotov
5ko at 5ko.fr
Wed Nov 27 07:01:18 PST 2019
There is currently no concise/succinct way to configure the output of
Attachlist, you need to override and redefine the whole markup
directive. Something like this in config.php:
Markup('attachlist', 'directives',
'/\\(:attachlist\\s*(.*?):\\)/i',
"DavidMarkupFmtUploadList");
function DavidMarkupFmtUploadList($m) {
extract($GLOBALS["MarkupToHTML"]); # get $pagename
return Keep('<ul>'.DavidFmtUploadList($pagename,$m[1]).'</ul>');
}
function DavidFmtUploadList($pagename, $args) {
## copy here the code from upload.php:FmtUploadList()
## and adapt it for your needs.
}
Petko
On 27/11/2019 15:28, david at ellendee.co.uk wrote:
> Is there any way to configure output from Attachlist. I am especially
> interested in supressing file details and would like to reconfigure in
> the
> possible using fmt= with pagelist.
More information about the pmwiki-users
mailing list