Samples > Starter stores > Starter store enhancements > Social Commerce > WebSphere Commerce Dojo Enhancements API > User interface widgets


ibm.social.PhotoGallery

The PhotoGallery widget is used by shoppers to post photos and view photos within a gallery. Shoppers can also add comments to photos, recommend photos, and mark content as inappropriate. When content is flagged as inappropriate, it is sent to the Site Administrator who can view the photo and determine whether to delete it from the storefront.


Sample Output

The following screen capture shows the PhotoGallery widget used by a registered shopper to post a new photo in the Lounge Chairs photo gallery.

The following screen capture shows the PhotoGallery widget used to view an existing photo, and the ability of a registered shopper to add comments to and recommend that photo.


Example

<div 
dojoType="ibm.social.PhotoGallery"

resourceId="Sample Store Item Id">
</div> 
<div
dojoType="ibm.social.PhotoGallery"

username="Sample Username">
</div>


Parameters

dojoType

(String) The Dojo widget type. Set to ibm.social.PhotoGallery.

title

(String) The title of the photo gallery. The title contains a short description of the item or the user.

resourceId

(String) Set only for item mode. The unique identifier for the category, subcategory, product, or other store item for which content is displayed.

username

(String) Set only for user mode. The unique identifier for the user whose content is displayed.

Related reference

ibm.social.Profile

ibm.social.Blog

ibm.social.BookMarks

ibm.social.Reviews

My Account: My Photos

Troubleshoot: Photos cannot be uploaded to the photo gallery when using Lotus Connections


+

Search Tips   |   Advanced Search