ContentViewLoader Class
Renders a 1 or more pieces of content such as articles or pages
Constructor
ContentViewLoader
(
-
context
Parameters:
-
context
Object-
ts
TemplateService -
ls
Localization -
[contentSettings]
Object optional -
session
Object -
service
ContentObjectService -
activeTheme
String -
[commentService]
CommentService optional -
siteObj
Object
-
Item Index
Methods
- createContentPermalink
- gatherData
- getDefaultCommentsTemplatePath
- getDefaultCommentTemplatePath
- getDefaultContentTemplatePath
- getDefaultTemplatePath
- getDisplayAttr static
- getMetaInfo
- getTemplate
- onAngular
- onCommentingUserPhoto
- onCommentingUserPosition
- onContent
- onContentHeadline
- onContentPermalink
- onInfiniteScroll
- onPageName
- render
- renderComment
- renderComments
- renderContent
- renderSingle
- setMetaInfo
- valOrEmpty static
Properties
Methods
createContentPermalink
(
String
-
content
Parameters:
-
content
Object
Returns:
String:
gatherData
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object -
cb
Function
getDefaultCommentsTemplatePath
()
String
Returns:
String:
getDefaultCommentTemplatePath
()
String
Returns:
String:
getDefaultContentTemplatePath
()
String
Returns:
String:
getDefaultTemplatePath
()
String
Returns:
String:
getDisplayAttr
(
String
static
-
val
Parameters:
-
val
Returns:
String:
getMetaInfo
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object -
cb
Function
getTemplate
(
-
content
-
options
-
cb
Parameters:
-
content
Array | Object -
options
Object-
[useDefaultTemplate]
Boolean optionalForces the default theme template to be selected
-
[topic]
Object optionalThe topic represented by the collection of content to be rendered
-
[section]
Object optionalThe section represented by the collection of content to be rendered
-
-
cb
Function
onAngular
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object -
cb
Function
onCommentingUserPhoto
(
-
content
-
commentingUser
-
cb
Parameters:
-
content
Object -
commentingUser
Object -
cb
Function
onCommentingUserPosition
(
-
content
-
options
-
cb
Parameters:
-
content
Object -
options
Object -
cb
Function
onContent
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object -
cb
Function
onContentHeadline
(
-
content
-
options
-
cb
Parameters:
-
content
Object -
options
Object -
cb
Function
onContentPermalink
(
-
content
-
options
-
cb
Parameters:
-
content
Object -
options
Object -
cb
Function
onInfiniteScroll
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object -
cb
Function
onPageName
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object -
cb
Function
render
(
-
contentArray
-
options
-
cb
Parameters:
-
contentArray
Array -
options
Object-
[useDefaultTemplate]
Boolean optionalForces the default theme template to be selected
-
[topic]
Object optionalThe topic represented by the collection of content to be rendered
-
[section]
Object optionalThe section represented by the collection of content to be rendered
-
-
cb
Function
renderContent
(
-
content
-
options
-
cb
Parameters:
-
content
Object -
options
Object -
cb
Function
renderSingle
(
-
content
-
options
-
cb
Parameters:
-
content
Object -
options
Object -
cb
Function
setMetaInfo
(
-
options
Parameters:
-
options
Object
valOrEmpty
(
static
-
val
When passed a value it is evaluated as a boolean. If evaluated to TRUE the value is returned, if FALSE empty string is returned
Parameters:
-
val
Returns:
: