I am trying to populate my fieldset's label field with some parsed string from data of my page.
I am writing this parsed string to a hidden field within my field set via a hook, everytime the page updates (so, everytime the user saves their changes).
I am writing this hidden field's value via the mustache syntax into my label field, however when I save my page (and the hidden field's value gets updated), the hidden field's old value stays visible in the header. Only when I reload my page, the correct value will show up in my fieldset's header.
Is there a way to force update this field on page save? (maybe some method I could include in my hook?)
Closing this issue because this plugin will no longer be maintained, as its main functionality can be replaced by Kirby's built-in Blocks Field and Layout Field.
I am trying to populate my fieldset's
label
field with some parsed string from data of my page. I am writing this parsed string to a hidden field within my field set via a hook, everytime the page updates (so, everytime the user saves their changes).I am writing this hidden field's value via the mustache syntax into my
label
field, however when I save my page (and the hidden field's value gets updated), the hidden field's old value stays visible in the header. Only when I reload my page, the correct value will show up in my fieldset's header.Is there a way to force update this field on page save? (maybe some method I could include in my hook?)
Thanks!