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


ibm.social.Blog

The Blog widget is used by shoppers to view the content of blog entries, as well as to create new blog entries, and add comments to or recommend existing blog entries. Shoppers can also view the content of blog entries and mark content as inappropriate. When content is flagged as inappropriate, it is sent to the Site Administrator who can view the blog entry and determine whether to delete it from the storefront. The Blog widget supports two modes: item mode and user mode. Item mode provides the blog content that is associated with a store item. User mode provides the blog content that is created by a single user.


Sample Output

The following screen capture shows the Blog widget used by a registered shopper to create a new entry for the Lounge Chairs blog.

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


Example

<div 
dojoType="ibm.social.Blog"

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

username="Sample Username">
</div>


Parameters

dojoType

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

title

(String) The title of the blog. 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.PhotoGallery

ibm.social.BookMarks

ibm.social.Reviews

My Account: My Blogs

Category

My Account: My Photos


+

Search Tips   |   Advanced Search