dokuwiki-plugin-struct icon indicating copy to clipboard operation
dokuwiki-plugin-struct copied to clipboard

Attempt to fix multi value handling with placeholders

Open splitbrain opened this issue 7 months ago • 1 comments

This partly reverts and augments 131fd50

The validator call is needed to transform the given value into to proper format (eg. an array for multivalues or an array of array for multi-page values). This has to be done after applying place holders.

This might also fix #729

It might also break other usecase so it needs more real world testing. Overall the bureaucracy handling is a mess, because bureaucracy is a mess. Until splitbrain/dokuwiki-plugin-bureaucracy#303 has been addressed, there is no good way to fix this.

splitbrain avatar May 22 '25 14:05 splitbrain

setVal is called on parsing (and then cached) and later again on action submit. We should not validate on parsing as this would destroy placeholders. Placeholder do need to be applied on rendering to keep them dynamic. I pushed a commit trying to address both issues.

@solewniczak could you check if this branch works with your setup?

splitbrain avatar Jul 24 '25 10:07 splitbrain