Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Access MVC Widget Identifier

$
0
0
In MVC widgets, in the widget's controller, how can we access a widget's unique identifier (GUID)?It's there in the CMS_Document DocumentPageBuilderWidgets column:{ @editableAreas@: [ { @identifier@: @Sections@, @sections@: [ { @identifier@: @98b9832d-c53d-42a7-b1a2-4b6e6b91de84@, @type@: @Kentico.DefaultSection@, @zones@: [ { @identifier@: @090c6b62-77da-4c30-a4e4-935bcd97ec5a@, @widgets@: [ { @identifier@: @31481c30-04ed-40de-b500-1e4618cd17c6@, @-- THISThis property would be very valuable in many scenarios. I thought to add a GUID property to the widget's property class, and maybe use the HiddenGuidInputComponent component as an editing component, thinking maybe there would be a way to use that to create a new GUID at runtime, but that doesn't appear to be possible.Alternatives?

Viewing all articles
Browse latest Browse all 8901

Trending Articles