ProfessionalWiki / PersistentPageIdentifiers

MediaWiki extension that adds persistent identifiers to wiki pages
https://professional.wiki/en/extension/persistent-page-identifiers
GNU General Public License v2.0
1 stars 0 forks source link

Return ID in parser function #29

Closed malberts closed 1 week ago

malberts commented 1 week ago

For #23

Parser function returns: Screenshot_20241113_153814

Same as page information: Screenshot_20241113_154002

malberts commented 1 week ago

I ran into one issue here: the parser function value is not saved if the page is created with {{#ppid:}} inside. If the page content is purged, or changed later, then the value shows up.

I suspect this is always going to be a problem because it needs to save the page (and therefore its content) first before getting the ID. I'm not sure if there is another hook that can be used, or if we should trigger a purge if the page contains the parser function on creation.

JeroenDeDauw commented 1 week ago

if we should trigger a purge if the page contains the parser function on creation.

I can't think of a better solution

JeroenDeDauw commented 1 week ago

Follow ups: