Setting custom media gallery object types as default selections 

Set custom photo and video object types as the object types selected by default when a user adds a media gallery to their community.


About this task

The IBM Connections installation program sets the default photo and video object types as the default object type selections shown when users add media galleries to their communities. If you create and import your own object types, you can make those the default object type selections instead. For example, when a user opens their community and clicks Community Actions -> Customize and then add a media gallery widget to the community, they see a dialog. The Photo Property Template and Video Property Template fields display the default object types: Social photo and Social video. You can change these to show your custom object types.


Procedure

  1. Check out and open widgets-config.xml. See Use the widgets-config.xml file for Communities.

  2. To set the default photo type selection, specify the value attribute of the <item name="mg_photoType" value="ada30772-31fe-44bf-b8b4-dd7e4f072cd6" /> element to be the <cmis:id> value of your custom video object type. The current value is the default photo object type.

  3. To set the default video type selection, specify the value attribute of the <item name="mg_videoType" value="ada30772-31fe-44bf-b8b4-dd7e4f072ad6" /> element to be the <cmis:id> value of your custom video object type. The current value is the default video object type.

  4. Check in widgets-config.xml.


Parent topic

Create custom media gallery object types


Related tasks


Use the widgets-config.xml file for Communities

Related reference
Media gallery widget widgets-config.xml definition

+

Search Tips   |   Advanced Search