[pmwiki-users] pmwiki-2.2.0-beta45 released

Patrick R. Michaud pmichaud at pobox.com
Wed May 2 10:42:00 CDT 2007


I've just released pmwiki-2.2.0-beta45, now available from

    http://www.pmwiki.org/pub/pmwiki/pmwiki-2.2.0-beta45.tgz
    http://www.pmwiki.org/pub/pmwiki/pmwiki-2.2.0-beta45.zip
    svn://pmwiki.org/pmwiki/tags/latest

This release has many substantial changes over beta44,
many (most) of which are internal.  I don't think existing
2.2.0-beta sites will have problems upgrading to this release,
but given the large number of changes involved it may pay to
be a little cautious with it, or wait for issues to shake out
a bit.

Here are some of the important changes in this beta release.
(Feel free to ignore any that don't make sense to you, as
that means they likely don't apply.)

1. $ROSPatterns, $ROEPatterns

The interpretation of $ROSPatterns has changed slightly.
In previous versions of PmWiki, the replacement string for
$ROSPatterns would be run through FmtPageName() prior to
the substitution taking place.  This no longer occurs.

This release also introduces $ROEPatterns, which allows for
certain replacements to occur as part of the editing/update
process.  (This is different from $ROSPatterns, where changes
occur as the page is being saved.)


2.  Relative page links

The $EnableLinkPageRelative variable can be set to tell PmWiki
to use relative urls for page links instead of absolute urls.
This may result in shorter pages and some bandwidth savings
for many sites.  


3. (:if date:)

The (:if date:) conditional now accepts a second parameter
identifying a date to be compared instead of the current
date/time.  For example, an author can now write

    (:if date 2007-05 {*$Name}:) ...

and the conditional text will display only if the name of
the current page is a date in the month of May 2007.

Dates and date ranges can also now use items like "today",
"tomorrow", etc.


4. (:pagelist if=... :)

The if= option to (:pagelist:) allows conditional markup to be
used to filter pages in the pagelist.  The {=$var} "current record"
page variable syntax works here, and is evaluated for each
candidate page in the list.  Thus, one can do things like:

    Display pages named later than today's date
    (:pagelist if="date today.. {=$Name}" :)

    Display pages with edit authorization
    (:pagelist if="auth edit {=$Name}" :)


5.  (:input textarea:), (:input default:)

The textarea control now accepts a value= parameter, and can obtain
its default value from (:input default:).  In addition, the
(:input default:) directive now accepts a source=<pagename> parameter,
which says to load input control defaults from the page text
variables defined in <pagename>.

This feature is still a little experimental, and may change slightly
in subsequent releases as we stabilize some new forms handling
capabilities.


For more details on changes, see the PmWiki ChangeLog.

Comments and questions welcomed as always.

Pm



More information about the pmwiki-users mailing list