[pmwiki-users] Attach: links
Dominique Faure
dominique.faure at gmail.com
Mon Mar 13 17:16:08 CST 2006
Hi,
Heavily using page attachments (and writing cookbook recipes), I found
that I would require both the standard Attach:... link display and
those specially crafted on pmwiki.org's Cookbook pages: ie an
attachment link offering the delta supplementary link to easily update
individual attachments.
I already found a way to get both of them on the same page, defining a
new pseudo-intermap link with the following code in the local
customization file:
$IMapLinkFmt['Upload:'] = "<a class='attachlink' href='\$LinkUrl'
rel='nofollow'>\$LinkText</a><a class='createlink'
href='\$LinkUpload'> Δ</a>";
$LinkFunctions['Upload:'] = 'LinkUpload';
$IMap['Upload:'] = '$1';
but I was wondering how to enable the "Delta-createlink" appairing
only if the current user as 'upload' rights, to have a both reader and
writer friendly attachment link?
Any help appreciated,
Dom
More information about the pmwiki-users
mailing list