[pmwiki-users] PmWiki 2.4.6 released
Petko Yotov
5ko at 5ko.fr
Tue Jun 17 04:35:46 PDT 2025
On 17/06/2025 12:41, ABClf wrote:
> Please, what does mean "mass-updating page metadata" in this updated
> version of PmWiki ?
The new version allows to add a page property $page['=keeplastmeta'] =
1;
If '=keeplastmeta' is not empty, existing page properties 'time',
'host', 'agent', 'rev' are not automatically updated.
This is useful when I have to to mass-update multiple pages with a
custom function that opens every page, then modifies something, then
saves the page, without updating the above page properties to those of
the mass-edit. Which means that for example pagelists ordered by last
modified time, and showing the time, will still show the previous time.
If the custom function uses '=keeplastmeta' but needs to update one of
these properties, it can do it before calling WritePage().
Previously the custom functions would need to write a separate PageStore
class, and redefine the write() function. Now this can be enabled more
easily.
A good candidate for this function is ReindexCategories (not using this,
but should):
https://www.pmwiki.org/wiki/Cookbook/ReindexCategories
Or for example to update author names in page histories, when someone
changed their name (on some wikis the username is the email address of
the user, and people sometimes change their address).
Petko
> Le dim. 15 juin 2025 à 10:31, Petko Yotov <5ko at 5ko.fr> a écrit :
>
>> Hello. PmWiki version 2.4.6 was published today, and is available at:
>>
>> https://www.pmwiki.org/pub/pmwiki/pmwiki-2.4.6.tgz
>> https://www.pmwiki.org/pub/pmwiki/pmwiki-2.4.6.zip
>> svn://www.pmwiki.org/pmwiki/tags/latest
>>
>> This release includes updates for recent PHP versions, adds helper
>> functions and variables handling custom actions, controlling the
>> history output format, mass-updating page metadata, moving elements on
>> page load, and incrementing input elements with the mouse wheel.
>>
>> A new variable $EnableRelativeAttachLinks, if set to 1, should rewrite
>> Attach: links in included page sections, so that the links stay
>> relative to the original page.
>>
>> The PmMultipartMail() function can now embed Attach: pictures.
>>
>> The documentation was updated.
>>
More information about the pmwiki-users
mailing list