Re: [pmwiki-users] PmWiki 2.4.6 released
Petko Yotov <[email protected]> Tue, 17 Jun 2025 13:35:46 +0200
| Newsgroups | gmane.comp.web.wiki.pmwiki.announce,gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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. >> _______________________________________________ pmwiki-announce mailing list [email protected] http://pmichaud.com/mailman/listinfo/pmwiki-announce