Media gallery widgets-config.xml definition 

Like all IBM Connections widgets, the media gallery widget is defined in the widgets-config.xml configuration file. The definition contains some properties you can edit to customize media galleries, including the list of allowed file types:

<widgetDef defId="MediaGallery" bundleRefId="lc_clib" prerequisite="files" description="MediaGallery_description"
uniqueInstance="true" url="{newsSvcRef}/widgets/lw/static/{version}!{locale}/MediaGalleryWidget_CMIS.xml" helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/media_gallery_frame.html" modes="view edit fullpage" primaryWidget="false" iconUrl="{newsSvcRef}/widgets/lw/images/mediaGalleryIcon.png"> <itemSet> <item name="svcDocUrl" value="{filesSvcRef}/form/cmis/community/{resourceId}/owned/servicedoc" /> <item name="svcDocUrlAnon" value="{filesSvcRef}/form/anonymous/cmis/community/{resourceId}/owned/servicedoc" /> <item name="svcContext" value="{filesSvcRef}" /> <item name="rootCategory" value="library" /> <item name="category.folder" value="false" /> <item name="validPhotoExts" value="jpg,jpeg,gif,png" /> <item name="validVideoExts" value="mp4,mov,flv" /> <item name="widgetEnv" value="Connections" /> <item name="mg_typesToShow" value="photos_and_videos" /> <item name="mg_photoType" value="ada30772-31fe-44bf-b8b4-dd7e4f072cd6" /> <item name="mg_videoType" value="ada30772-31fe-44bf-b8b4-dd7e4f072ad6" /> <item name="mg_fileUrl" value="{contextRoot}/service/html/communityview?communityUuid={resourceId}#fullpageWidgetId={widgetId}&amp;file={objectTypeId}!{fileUuid}" /> </itemSet> </widgetDef>

You can optionally edit the following items:

See Use the widgets-config.xml file for Communities for steps on checking the widgets-config.xml file out and in again.


Parent topic

Configure media galleries


Related tasks


Use the widgets-config.xml file for Communities
Setting allowed media gallery file extensions
Setting the object types available when adding a media gallery
Setting custom media gallery object types as default selections


October 7, 2011 9:27:53 AM
   

 

Oct 7, 2011 9:27:53 AM 2 Oct 7, 2011 9:22:09 AM 1 Sep 19, 2011 9:58:44 AM

});