[pmwiki-users] AddDeleteLine version 2.0beta2

Nils Knappmeier nk at knappi.org
Fri Sep 22 07:31:38 CDT 2006


Hi everyone,

I have decided that the time has come to change the AddDeleteLine recipe 
to version 2.0 (beta still). Except from the bugs that I fixed in the 
last two days (with the help of Michael Gleicher who pointed me there), 
I have made some changes that make the new version cleaner then the 
original recipe. Version 2.0 is however not compatible to version 1, 
since it uses different markup.

The major changes are:
- In order to clarify, where the markup comes from, all the directives 
have been changed to begin with (:adl ...:)
- The (:textfield:) and (:submit:) directives have been removed, since 
they can be provided by PmWiki-Forms.
- The process of deleting lines has been changed internally, so that 
ambiguities do not appear anymore.
- Delete-buttons can delete lines, even if they are included into 
another page, using the (:include:) directive.
- It i's now possible to delete multi-line entries with the delete-button!
- The template can also be read from a wiki-page, which is more suitable 
for multi-line entries


The features of the later revisions of version 1 are also present in 
version 2:
- The {date:fmt} and {strftime:fmt} markup can be used in the template 
to insert the current date into the
  added data.
- The (:adl form name target=PageName:) provides an easy way to direct 
the output to a different page.

The current version is 2.0beta2 and can be downloaded from

   http://www.pmwiki.org/wiki/Cookbook/AddDeleteLine2

an example and playground page is set up at

   http://www.knappi.org/v2/index.php/Adl2/Adl2

Have fun,
   Nils





More information about the pmwiki-users mailing list