Skip to content

Composite Region in Site Settings not Deserializing the respective record Id #1925

Answered by tidyui
urbanambroz asked this question in Q&A
Discussion options

You must be logged in to vote

Another possible workaround could be to add a custom field that sets its own value to Guid.NewGuid() if the value is empty. Then it could be rendered in the manager in the same manner as the ReadonlyField (https://github.com/PiranhaCMS/piranha.core/blob/master/core/Piranha.Manager/assets/src/js/components/fields/readonly-field.vue). If you added this field to all of the regions that you need to handle the way you describe you would get a unique Id per region & region item for collections that you could use.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@urbanambroz
Comment options

Answer selected by urbanambroz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants