ContentViewLoader Class
Renders a 1 or more pieces of content such as articles or pages
Constructor
ContentViewLoader
(
-
context
Parameters:
-
contextObject-
tsTemplateService -
lsLocalization -
[contentSettings]Object optional -
sessionObject -
serviceContentObjectService -
activeThemeString -
[commentService]CommentService optional -
siteObjObject
-
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:
-
contentObject
Returns:
String:
gatherData
(
-
contentArray -
options -
cb
Parameters:
-
contentArrayArray -
optionsObject -
cbFunction
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:
-
contentArrayArray -
optionsObject -
cbFunction
getTemplate
(
-
content -
options -
cb
Parameters:
-
contentArray | Object -
optionsObject-
[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
-
-
cbFunction
onAngular
(
-
contentArray -
options -
cb
Parameters:
-
contentArrayArray -
optionsObject -
cbFunction
onCommentingUserPhoto
(
-
content -
commentingUser -
cb
Parameters:
-
contentObject -
commentingUserObject -
cbFunction
onCommentingUserPosition
(
-
content -
options -
cb
Parameters:
-
contentObject -
optionsObject -
cbFunction
onContent
(
-
contentArray -
options -
cb
Parameters:
-
contentArrayArray -
optionsObject -
cbFunction
onContentHeadline
(
-
content -
options -
cb
Parameters:
-
contentObject -
optionsObject -
cbFunction
onContentPermalink
(
-
content -
options -
cb
Parameters:
-
contentObject -
optionsObject -
cbFunction
onInfiniteScroll
(
-
contentArray -
options -
cb
Parameters:
-
contentArrayArray -
optionsObject -
cbFunction
onPageName
(
-
contentArray -
options -
cb
Parameters:
-
contentArrayArray -
optionsObject -
cbFunction
render
(
-
contentArray -
options -
cb
Parameters:
-
contentArrayArray -
optionsObject-
[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
-
-
cbFunction
renderContent
(
-
content -
options -
cb
Parameters:
-
contentObject -
optionsObject -
cbFunction
renderSingle
(
-
content -
options -
cb
Parameters:
-
contentObject -
optionsObject -
cbFunction
setMetaInfo
(
-
options
Parameters:
-
optionsObject
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:
:
