contentbox.widgets

Class Categories

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

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

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
    Method Summary
    private any buildDropDown([any categories], [any showPostCount])
    private any buildList([any categories], [any showPostCount])
    any renderIt([boolean dropdown='false'], [boolean showPostCount='true'], [string title=''], [string titleLevel='2'])
         Show the blog categories.
     
    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()


    Method Detail

    buildDropDown

    private any buildDropDown([any categories], [any showPostCount])

    Parameters:
    categories
    showPostCount

    buildList

    private any buildList([any categories], [any showPostCount])

    Parameters:
    categories
    showPostCount

    renderIt

    public any renderIt([boolean dropdown='false'], [boolean showPostCount='true'], [string title=''], [string titleLevel='2'])

    Show the blog categories

    Overrides:
    renderIt in class BaseWidget
    Parameters:
    dropdown - Display as a dropdown or a list, default is list
    showPostCount - Show post counts or not, default is true
    title - The title to show before the dropdown or list, defaults to H2
    titleLevel - The H{level} to use, by default we use H2