contentbox.widgets

Class RSS

railo-context.Component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Plugin
                extended by contentbox.model.ui.BaseWidget
                    extended by contentbox.widgets.RSS
Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    A widget that reads an RSS feed and displays the items

    Constructor Summary
    init([any controller])
    Method Summary
    private any buildList(any entries, any showBody, any linkTarget)
    any renderIt(any feedURL, [numeric maxItems='5'], [boolean showBody='true'], [string linkTarget='_blank'], [string title=''], [string titleLevel='2'])
         A widget that reads an RSS feed and displays the items.
     
    Methods inherited from class contentbox.model.ui.BaseWidget
    getAuthorService, getCategory, getCategoryService, getCb, getCommentService, getContentService, getContentStoreService, getContentVersionService, getEntryService, getForgeBoxSlug, getHtml, getIcon, getMenuService, getPageService, getPublicMethods, getSecurityService, setAuthorService, setCategory, setCategoryService, setCb, setCommentService, setContentService, setContentStoreService, setContentVersionService, setEntryService, setForgeBoxSlug, setHtml, setIcon, setMenuService, setPageService, setSecurityService
     
    Methods inherited from class coldbox.system.Plugin
    getpluginAuthor, getpluginAuthorURL, getPluginDescription, getPluginName, getpluginPath, getPluginVersion, getRequestCollection, getRequestContext, setpluginAuthor, setpluginAuthorURL, setPluginDescription, setPluginName, setPluginVersion
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    addAsset, announceInterception, getCache, getController, getDatasource, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init([any controller])

    Parameters:
    controller

    Method Detail

    buildList

    private any buildList(any entries, any showBody, any linkTarget)

    Parameters:
    entries
    showBody
    linkTarget

    renderIt

    public any renderIt(any feedURL, [numeric maxItems='5'], [boolean showBody='true'], [string linkTarget='_blank'], [string title=''], [string titleLevel='2'])

    A widget that reads an RSS feed and displays the items

    Overrides:
    renderIt in class BaseWidget
    Parameters:
    feedURL - The rss feed URL
    maxItems - The maximum number of items to display, default is 5
    showBody - Show the body of the feed item or not, default is true
    linkTarget - The link target (HTML) for the RSS item link, defaults to _blank
    title - The title to show before the dropdown or list, defaults to H2
    titleLevel - The H{level} to use, by default we use H2