How to lock similar fields in modules via template
SOLVE
Hey there,
it is possible to lock whole modules over a template by using overridable=False. But can you also lock only some fields of a module used in an template? Maybe with the module_attribute tag?
How to lock similar fields in modules via template
SOLVE
Thank you for clarifying. While, yes, the overrideable=False can prevent the entire module from being edited on a page, there isn't an equivalent for individual fields.
You would either need to edit the fields.json as I mentioned or you can also use this setting in teh design manager when editing a specific field in the module.
✔️ Did this post help answer your query? Help the community by marking it as a solution.
The "locked": true will prevent this field from being changed when editing a page. You would need to add this for every field in fields.json file of your module.
Hope this helps!
✔️ Did this post help answer your query? Help the community by marking it as a solution.
How to lock similar fields in modules via template
SOLVE
thank you for your answer. But this was not the question. I do not mean the developing of a module. I would lock fields when I am using the module for example:
How to lock similar fields in modules via template
SOLVE
Thank you for clarifying. While, yes, the overrideable=False can prevent the entire module from being edited on a page, there isn't an equivalent for individual fields.
You would either need to edit the fields.json as I mentioned or you can also use this setting in teh design manager when editing a specific field in the module.
✔️ Did this post help answer your query? Help the community by marking it as a solution.
How to lock similar fields in modules via template
SOLVE
Thank you for the answer. This should be a new feature, cause so its not easy using modules for dynamic pages an giving the style control to the content editor.