contentbox.widgets

Class RecentPages

lucee.Component
    extended by coldbox.system.FrameworkSupertype
      extended by contentbox.models.ui.BaseWidget
        extended by contentbox.widgets.RecentPages

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A cool basic widget that shows N recent pages

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
          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.models.ui.BaseWidget
    getAuthor, getAuthorService, getAuthorURL, getCategory, getCategoryService, getCb, getCommentService, getContentService, getContentStoreService, getContentVersionService, getDescription, getEntryService, getForgeBoxSlug, getHtml, getIcon, getLog, getMenuService, getName, getPageService, getPublicMethods, getSecurityService, getVersion, setAuthor, setAuthorService, setAuthorURL, setCategory, setCategoryService, setCb, setCommentService, setContentService, setContentStoreService, setContentVersionService, setDescription, setEntryService, setForgeBoxSlug, setHtml, setIcon, setLog, setMenuService, setName, setPageService, setSecurityService, setVersion
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    addAsset, announceInterception, getCache, getController, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getRequestCollection, getRequestContext, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    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