contentbox.models.content.renderers

Class SettingRenderer

lucee.Component
    extended by contentbox.models.content.renderers.BaseRenderer
      extended by contentbox.models.content.renderers.SettingRenderer

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A content renderer that transforms ${setting} into the actual setting displayed You can also prefix the markup with rc or prc to render from the request contexts as well: ${rc:key} ${prc:key} You can escape this notation by surrounding them with our tags

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any cbResourceService


    • access = public
    • returntype = any
    • inject = resourceService@cbi18n
    true false
    any settingService


    • access = public
    • returntype = any
    • inject = settingService@contentbox
    true false
    Method Summary
    void cb_onContentRendering(any event, [struct data='[runtime expression]'])
         Execute on content translations for pages and blog entries.
    string getCbResourceService()
    string getSettingService()
    any setCbResourceService(any cbResourceService)
    any setSettingService(any settingService)
    private any translateContent(any builder, any content, any event)
         Translate the content.
     
    Methods inherited from class contentbox.models.content.renderers.BaseRenderer
    configure, getCb, getLog, multiStringReplace, setCb, setLog
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    cbResourceService

    property any cbResourceService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - resourceService@cbi18n
    serializable - true

    settingService

    property any settingService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - settingService@contentbox
    serializable - true

    Method Detail

    cb_onContentRendering

    public void cb_onContentRendering(any event, [struct data='[runtime expression]'])

    Execute on content translations for pages and blog entries

    Parameters:
    event
    data

    getCbResourceService

    public string getCbResourceService()


    getSettingService

    public string getSettingService()


    setCbResourceService

    public any setCbResourceService(any cbResourceService)

    Parameters:
    cbResourceService

    setSettingService

    public any setSettingService(any settingService)

    Parameters:
    settingService

    translateContent

    private any translateContent(any builder, any content, any event)

    Translate the content

    Parameters:
    builder - java.lang.StringBuilder that contains all the content to manipulate
    content - The content object that requested translation
    event - The ColdBox event