Behaviors#
plonegovbr.socialmedia registers two behaviors.
Name |
Title |
Enabled by the |
|---|---|---|
|
Social Media: Settings |
|
|
Social Media: Links |
No content type |
Both put their fields in a fieldset with the id social_media, labeled Social Media.
The widget#
Both social_links fields name their Volto widget in frontendOptions.
directives.widget(
"social_links",
frontendOptions={
"widget": "social_media_object_list",
"widgetProps": {"schemaName": "socialMedia"},
},
)
plone.restapi serves frontendOptions as written, and Volto looks the widget up by name.
The frontend add-on registers the edit widget, the view widget, and the socialMedia schema, as Widgets describes.