ContentBox Core API 1.5.7

contentbox.widgets
Class Categories

WEB-INF.cftags.component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Plugin
                extended by contentbox.model.ui.BaseWidget
                    extended by contentbox.widgets.Categories

public class Categories
extends BaseWidget

A cool basic widget that shows our blog categories


Constructor Summary
init([any controller])
 
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.model.ui.BaseWidget
GETAUTHORSERVICE, GETCATEGORY, GETCATEGORYSERVICE, GETCB, GETCOMMENTSERVICE, GETCONTENTSERVICE, GETCONTENTSTORESERVICE, GETCONTENTVERSIONSERVICE, GETENTRYSERVICE, GETFORGEBOXSLUG, GETHTML, GETICON, GETPAGESERVICE, GETSECURITYSERVICE, SETAUTHORSERVICE, SETCATEGORY, SETCATEGORYSERVICE, SETCB, SETCOMMENTSERVICE, SETCONTENTSERVICE, SETCONTENTSTORESERVICE, SETCONTENTVERSIONSERVICE, SETENTRYSERVICE, SETFORGEBOXSLUG, SETHTML, SETICON, SETPAGESERVICE, SETSECURITYSERVICE, getPublicMethods
 
Methods inherited from class coldbox.system.Plugin
getPluginDescription, getPluginName, getPluginVersion, getRequestCollection, getRequestContext, getpluginAuthor, getpluginAuthorURL, getpluginPath, setPluginDescription, setPluginName, setPluginVersion, setpluginAuthor, setpluginAuthorURL
 
Methods inherited from class coldbox.system.FrameworkSupertype
$abort, $dump, $htmlhead, $include, $rethrow, $throw, addAsset, announceInterception, getColdboxOCM, getController, getDatasource, getDebugMode, getInterceptor, getMailService, getMailSettings, getMemento, getModel, getModuleSettings, getMyPlugin, getNewMail, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getValidationManager, getfwLocale, includeUDF, loadGlobalUDFLibraries, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderLayout, renderView, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setfwLocale, settingExists, validateModel
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init([any controller])

Parameters:
controller
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

ContentBox Core API 1.5.7