contentbox.widgets

Class RecentPages

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

    A cool basic widget that shows N recent pages

    Constructor Summary
    init(any controller)
          Constructor.
    Method Summary
    array getAllCategories()
         Get all the categories.
    any renderIt([numeric max='5'], [string title=''], [string titleLevel='2'], [string category=''], [string searchTerm=''], [string sortOrder='Most Recent'])
         Show n recent pages with some cool orderings.
     
    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)

    Constructor

    Parameters:
    controller

    Method Detail

    getAllCategories

    public array getAllCategories()

    Get all the categories


    renderIt

    public any renderIt([numeric max='5'], [string title=''], [string titleLevel='2'], [string category=''], [string searchTerm=''], [string sortOrder='Most Recent'])

    Show n recent pages with some cool orderings

    Overrides:
    renderIt in class BaseWidget
    Parameters:
    max - The number of recent pages to show. By default it shows 5
    title - An optional title to display using an H2 tag.
    titleLevel - The H{level} to use, by default we use H2
    category - The list of categories to filter on
    searchTerm - The search term to filter on
    sortOrder - How to order the results, defaults to publishedDate