juek / CustomSections

Developer plugin for rapid prototyping of custom section types in Typesetter CMS
GNU General Public License v2.0
3 stars 7 forks source link

Update always_process_values for existing section #61

Closed mahotilo closed 4 years ago

mahotilo commented 4 years ago

This allows to change always_process_values for existing section when press Recreate Custom Sections.

It is fix for https://github.com/juek/CustomSections/issues/60

juek commented 4 years ago

Sorry I'm a bit busy at the moment to get the issue or check what the PR actually does. But when you say you fixed it I'm certain you did ;)

In fact I rarely use the Admin page and refresh function.

mahotilo commented 4 years ago

Sorry I'm a bit busy at the moment

Thank you for your trust. And I hope your are well.

In fact I rarely use the Admin page and refresh function.

I tried really hard to find a way to update page->file_sections[...]['always_process_values'] while editing a section, but I failed. I always lacked some parameter in PHP or JS functions. But the Admin page refresh function appears to be a "full house", and it completely satisfies my usage scenarios. Now I can, e.g., calculate and update 'always_process_values' value in one section depending on whether another section dir exists. Or, I can fix some of my pages with dozens of custom section inserted with the wrong (after custom section code update:) 'always_process_values'.