TimOetting / kirby-builder

A site builder extension for Kirby CMS
398 stars 50 forks source link

Reload / rerender label field on page save #153

Closed trych closed 2 years ago

trych commented 4 years ago

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!

TimOetting commented 2 years ago

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.