Socialid.templateCache.get

From Social ID Developers
Jump to: navigation, search

Contents

Description

Gets a HTML template from the cache.

Usage

 socialid.templateCache.get(templateName)

Parameters

templateName required name of the template.

List of Comments & Reviews template names

comments_badge_login User badge for the post creation area when user is logged out.
comments_badge_login_popover Login and popover button for the post creation area when user is logged out.
comments_badge_logout User badge for the post creation area when user is logged in.
comments_create_comment Post creation area (Comments widget).
comments_create_review Post creation area (Ratings & Reviews widget).
comments_form_comment Post creation form (Comments widget).
comments_form_login_popover Login and popover button for the post creation form when user is logged out.
comments_form_review Post creation form (Ratings & Reviews widget).
comments_post_comment Single post display (Comments widget).
comments_post_review Single post display (Ratings & Reviews widget).
comments_share_popover Popover button for sharing dialog.
comments_widget Widget main container.

Example

Gets a template from the cache:

 var templateName = "comments_post_comment";
 var templateHtml = socialid.templateCache.get(templateName);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox