ArticleRenderer Class
Retrieves the necessary data as well as prepares the layout so a view loader can complete the render of content
Constructor
ArticleRenderer
        - 
                        context
Parameters:
- 
                        contextObject- 
                                    hostnameString
- 
                                    siteString
- 
                                    onlyThisSiteBoolean
- 
                                    [userService]UserService optional
 
- 
                                    
Item Index
Methods
Properties
Methods
containsReadMoreFlag
        - 
                        content
Parameters:
- 
                        contentObject
Returns:
formatAutoBreak
        - 
                        content
- 
                        context
Parameters:
- 
                        contentObject
- 
                        contextObject
formatBylines
        - 
                        content
- 
                        context
Parameters:
- 
                        contentObject
- 
                        contextObject
formatComments
        - 
                        content
- 
                        context
- 
                        cb
Parameters:
- 
                        contentObject
- 
                        contextObject
- 
                        cbFunction
formatLayout
        - 
                        content
- 
                        context
Parameters:
- 
                        contentObject
- 
                        contextObject
formatLayoutForReadMore
        - 
                        content
- 
                        context
Parameters:
- 
                        contentObject
- 
                        contextObject- 
                                    readMoreBoolean
 
- 
                                    
formatMediaReferences
        - 
                        content
- 
                        context
- 
                        cb
Parameters:
- 
                        contentObject
- 
                        contextObject
- 
                        cbFunction
formatTimestamp
        - 
                        content
- 
                        context
Parameters:
- 
                        contentObject
- 
                        contextObject
getCommenters
        - 
                        comments
- 
                        contentSettings
- 
                        cb
Retrieves the commenters for an array of comments
Parameters:
- 
                        commentsArrayArray of comment objects 
- 
                        contentSettingsObjectContent settings to use for processing 
- 
                        cbFunctionCallback function 
getContentLinkPrefix
        ()
        
            String
        
    
    Returns:
getLayout
        - 
                        content
Retrieves the layout from the content object. Provides a mechanism to allow for layout parameter to have any name.
Parameters:
- 
                        contentObject
Returns:
getReadMoreLink
        - 
                        content
- 
                        anchorContent
Parameters:
- 
                        contentObject
- 
                        anchorContentString
Returns:
getReadMoreSpan
        - 
                        content
- 
                        anchorContent
Parameters:
- 
                        contentObject
- 
                        anchorContentString
Returns:
render
        - 
                        content
- 
                        context
- 
                        cb
Parameters:
- 
                        contentObject
- 
                        contextObject- 
                                    [authors]Object optionalA hash of user objects representing the authors of the content to be rendered 
- 
                                    contentSettingsObjectThe content settings 
- 
                                    contentCountIntegerAn integer representing the total number of content objects that will be processed for this request 
- 
                                    [renderBylines=true]Boolean optional
- 
                                    [renderTimestamp=true]Boolean optional
- 
                                    [renderComments=true]Boolean optional
- 
                                    [readMore=false]Boolean optional
 
- 
                                    
- 
                        cbFunction
setLayout
        - 
                        content
- 
                        layout
A workaround to allow this prototype to operate on articles and pages. The layout parameter is not the same. Until we introduce breaking changes this will have to do.
Parameters:
- 
                        contentObject
- 
                        layoutString
Properties
ANONYMOUS_COMMENTER
    String
        private
        static
    
    hostname
    String
    
    onlyThisSite
    Boolean
    
    READ_MORE_FLAG
    String
        private
        static
    
    site
    String
    
    userService
    UserService
    
    Instance of user service. No context is provided and therefore can only be used
