[pmwiki-users] Feature request: Action lists in skins

Patrick R. Michaud pmichaud at pobox.com
Sun Apr 17 17:49:11 CDT 2005


On Sun, Apr 17, 2005 at 06:20:51PM -0400, Bronwyn Boltwood wrote:
> 
> But, if Pm could tell me how to add classes or ids to elements through
> the wiki markup, then I think I'd prefer to store the action lists and
> so on in wikipages, because most admins will understand how to edit
> those, and restore the old version if they make a mistake. 

Classes are easy:

   %class=actionedit% [[{$Name}?action=edit]]
   %class=actionview% [[{$Name}?action=browse]]

In fact, if there's no 'actionedit' or 'actionview' wikistyle defined,
then 'class=' becomes optional:
   %actionedit% [[{$Name}?action=edit]]
   %actionview% [[{$Name}?action=browse]]

Ids are much tougher, because HTML requires them to be unique in
a document, and it's all too easy to get them duplicated.
But perhaps I can enable 'id=' somehow in a WikiStyle.  My real
plan has been that things would be identified through (:div:)s :

   (:div id=actions:)
   [[{$Name}?action=edit]]
   [[{$Name}?action=browse]]
   (:divend:)

Pm



More information about the pmwiki-users mailing list