lucee.Component contentbox.models.system.CBHelper
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- This is the ContentBox UI helper class that is injected by the CBRequest interceptor
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
authorService
|
true
|
false
|
|
any
|
categoryService
|
true
|
false
|
|
any
|
commentService
|
true
|
false
|
|
any
|
contentStoreService
|
true
|
false
|
|
any
|
controller
|
true
|
false
|
|
any
|
entryService
|
true
|
false
|
|
any
|
menuItemService
|
true
|
false
|
|
any
|
menuService
|
true
|
false
|
|
any
|
mobileDetector
|
true
|
false
|
|
any
|
moduleService
|
true
|
false
|
|
any
|
pageService
|
true
|
false
|
|
any
|
requestService
|
true
|
false
|
|
any
|
resourceService
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
|
any
|
widgetService
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
adminRoot()
Get the admin site root location using the configured module's entry point. |
any
|
breadCrumbs([any page], [string separator='>'])
Create breadcrumbs for a UI page. |
private any
|
buildMenu([any pageRecords], [any excludes=''], [any type='ul'], [any typeClass='submenu'], [any separator=''], [boolean showNone='true'], [any levels='1'], [numeric currentLevel='1'], [any elementClass=''], [any parentClass='parent'], [any activeClass='active'], [any activeShowChildren='false'])
PRIVATE ********************************************. |
any
|
buildModuleLink(string module, string linkTo, [any queryString=''], [boolean ssl='false'])
Build out ContentBox module links. |
string
|
buildProviderMenu(any<Menu> menu, array slugCache='[runtime expression]')
Builds out a custom menu. |
private string
|
buildProviderMenuLevel(array items, string listType='ul', array slugCache='[runtime expression]', [string listClass=''])
Builds out a level of a custom menu. |
boolean
|
categoryFilterExists()
|
any
|
contentStore(any slug, [any defaultValue=''])
Get a published content store and return its latest active content. |
any
|
contentStoreObject(any slug)
Get a content store object by slug, if not found it returns null. |
any
|
customHTML(any slug, [any defaultValue=''])
Get a published custom HTML content pieces by slug: DEPRECATED, use contentStore() instead. |
any
|
event(any state, [struct data='[runtime expression]'])
events ********************************************. |
string
|
getAuthorService()
|
any
|
getBlogEntryPoint()
Get the blog entry point as specified in the settings. |
any
|
getCategoryFilter()
|
string
|
getCategoryService()
|
array
|
getCommentErrors()
|
string
|
getCommentService()
|
any
|
getContentBoxCodeName()
get contentbox codename. |
any
|
getContentBoxCodeNameURL()
get contentbox codename URL. |
any
|
getContentBoxVersion()
get contentbox version. |
string
|
getContentStoreService()
|
string
|
getController()
|
any
|
getCurrentCategories()
|
any
|
getCurrentComments()
|
any
|
getCurrentCommentsCount()
|
struct
|
getCurrentCustomFields()
Get the current page's or blog entries custom fields as a struct. |
any
|
getCurrentEntries()
|
any
|
getCurrentEntriesCount()
|
any
|
getCurrentEntry()
|
any
|
getCurrentPage()
|
any
|
getCurrentRelatedContent()
Get the current page or entries related content array. |
any
|
getCustomField(any key, [any defaultValue])
Get a current page's or blog entrie's custom field by key, you can pass a default value if not found. |
any
|
getDayFilter()
|
string
|
getEntryService()
|
any
|
getFlash()
Return the current system flash scope. |
any
|
getHomePage()
Get Home Page slug set up by the administrator settings. |
any
|
getMaintenanceMessage()
Get the maintenance message from the ContentBox settings. |
string
|
getMenuItemService()
|
string
|
getMenuService()
|
any
|
getMissingPage()
Get the missing page, if any, usually used in a page not found context. |
string
|
getMobileDetector()
|
struct
|
getModuleConfig(any module)
Get a module's configuration structure. |
string
|
getModuleService()
|
struct
|
getModuleSettings(any module)
Get a module's settings structure. |
any
|
getMonthFilter()
|
string
|
getPageService()
|
struct
|
getPrivateRequestCollection()
Get the private request collection. |
struct
|
getRequestCollection([boolean private='false'])
Get the RC or PRC collection reference. |
any
|
getRequestContext()
Get the current request context. |
string
|
getRequestService()
|
string
|
getResourceService()
|
any
|
getSearchResults()
Get the curent search results object. |
any
|
getSearchResultsContent()
get the curent search results HTML content. |
any
|
getSearchTerm()
Get Search Term used. |
string
|
getSettingService()
|
any
|
getWidget(any name)
Return a widget object. |
string
|
getWidgetService()
|
string
|
getWirebox()
|
any
|
getYearFilter()
|
any
|
isAdminLoaded()
Verifies if the admin module is loaded. |
boolean
|
isArchivesView()
|
boolean
|
isBlogView()
|
boolean
|
isCommentFormError()
|
boolean
|
isCommentsEnabled([any content])
Determines if site comments are enabled and if the entry accepts comments. |
boolean
|
isEntryView()
|
boolean
|
isHomePage()
Checks if the currently viewed page is the homepage. |
boolean
|
isIndexView()
|
boolean
|
isMobile()
Detects if the incoming request is from a mobile device or NOT. |
boolean
|
isPageView([any page=''])
Determine if you are in the page view. |
boolean
|
isPreview()
Determine if you're in a "preview" mode or not. |
boolean
|
isPrintFormat()
|
boolean
|
isSearchView()
search ********************************************. |
any
|
layoutName()
Get the layout name. |
any
|
layoutRoot()
Layout Location. |
any
|
layoutSetting()
Get a theme setting. |
any
|
linkAdmin([any event=''], [boolean ssl='false'])
Link to the admin. |
any
|
linkAdminLogin([boolean ssl='false'])
Link to the admin login. |
any
|
linkAdminLogout([boolean ssl='false'])
Link to the admin logout. |
any
|
linkArchive([any year], [any month], [any day], [boolean ssl='false'])
Link to a specific filtered archive of entries. |
any
|
linkBlog([boolean ssl='false'])
Create a link to your site blog. |
any
|
linkCategory(any category, [boolean ssl='false'])
Link to a specific filtered category view of blog entries. |
any
|
linkCategoryWithSlug(string categorySlug, [boolean ssl='false'])
Link to a specific filtered category view of blog entries. |
any
|
linkComment(any comment, [boolean ssl='false'])
Create a link to a specific comment in a page or in an entry. |
any
|
linkCommentPost(any content, [boolean ssl='false'])
Link to the commenting post action, this is where comments are submitted to. |
any
|
linkComments(any content, [boolean ssl='false'])
Create a link to an entry's or page's comments section. |
any
|
linkContent(any content, [boolean ssl='false'], [any format='html'])
Link to a specific content object. |
any
|
linkContentSearch([boolean ssl='false'])
Link to the content search route. |
any
|
linkContentSubscription([boolean ssl='false'])
Link to the content subscription route. |
any
|
linkContentUnsubscribe(string token, [boolean ssl='false'])
Link to the ContentBox Content Subscription unsubscribe URL. |
any
|
linkEntry(any entry, [boolean ssl='false'], [any format='html'])
Link to a specific blog entry's page. |
any
|
linkEntryWithSlug(any slug, [boolean ssl='false'], [any format='html'])
Link to a specific entry's page using a slug only. |
any
|
linkHome([boolean ssl='false'])
Create a link to your site root or home page entry point for your blog. |
any
|
linkPage(any page, [boolean ssl='false'], [any format='html'])
Link to a specific page. |
any
|
linkPageRSS([any category], [boolean comments='false'], [any page], [boolean ssl='false'])
Link to the ContentBox Page RSS Feeds. |
any
|
linkPageWithSlug(any slug, [boolean ssl='false'], [any format='html'])
Link to a specific page using a slug only. |
any
|
linkRSS([any category], [any comments='false'], [any entry], [boolean ssl='false'])
Link to RSS feeds that ContentBox generates, by default it is the recent updates feed. |
any
|
linkSearch([boolean ssl='false'])
Link to the search route for this blog. |
any
|
linkSelf()
Create a link to the current page/entry you are on. |
any
|
linkSiteRSS([any category], [boolean comments='false'], [string slug], [boolean ssl='false'])
Link to the ContentBox Site RSS Feeds. |
any
|
linkToParentPage([any page], [any text=''])
Create an href to a page's parent. |
any
|
mainView([struct args='[runtime expression]'])
Render the incoming event's main view, basically a proxy to ColdBox's controller. |
any
|
menu(string slug, any type='html', array slugCache='[runtime expression]')
Build out a menu. |
CBHelper
|
prepareUIRequest([string layout])
Prepare a ContentBox UI request. |
string
|
quickAvatar(any author, [numeric size='25'], [string class='gravatar'])
Renders out an author's avatar. |
any
|
quickCategories([string template='category'], [string collectionAs='category'], [struct args='[runtime expression]'])
Render out categories anywhere using ColdBox collection rendering. |
any
|
quickCategoryLinks(any entry)
quick HTML ********************************************. |
any
|
quickCommentForm(any content)
quickCommentForm will build a standard ContentBox Comment Form according to the CommentForm widget. |
any
|
quickComments([string template='comment'], [string collectionAs='comment'], [struct args='[runtime expression]'])
Render out comments anywhere using ColdBox collection rendering. |
any
|
quickCustomFields()
Render out custom fields for the current content. |
any
|
quickEntries([string template='entry'], [string collectionAs='entry'], [struct args='[runtime expression]'])
Render out entries in the home page by using our ColdBox collection rendering. |
any
|
quickEntry([string template='entry'], [string collectionAs='entry'], [struct args='[runtime expression]'])
Render out an entry using your pre-defined 'entry' template. |
any
|
quickLayout(any layout, [any view=''], [any module='contentbox'], [any args='[runtime expression]'], [any viewModule=''], [boolean prePostExempt='false'])
QuickLayout is a proxy to ColdBox's renderLayout method with the addition of prefixing the location of the layout according to the. |
any
|
quickPaging()
Render out paging for blog entries only. |
any
|
quickRelatedContent([string template='relatedContent'], [string collectionAs='relatedContent'], [struct args='[runtime expression]'])
Render out related content anywhere using ColdBox collection rendering. |
any
|
quickSearchForm()
quickSearchForm will build a standard ContentBox Content Search Form according to the SearchForm widget. |
any
|
quickSearchPaging()
Render out paging for search content. |
any
|
quickView(any view, [any cache='false'], [any cacheTimeout], [any cacheLastAccessTimeout], [any cacheSuffix], [any cacheProvider='template'], [any module='contentbox'], [struct args], [any collection], [any collectionAs=''], [numeric collectionStartRow='1'], [numeric collectionMaxRows='0'], [any collectionDelim=''], [boolean prepostExempt='false'])
QuickView is a proxy to ColdBox's renderview method with the addition of prefixing the location of the view according to the. |
any
|
r(string resource, [string defaultValue], [string locale], [any values], [string bundle])
Retrieve i18n resources. |
any
|
rootMenu([any excludes=''], [any type='ul'], [any typeClass=''], [any separator=''], [any levels='1'], [any elementClass=''], [any parentClass='parent'], [any activeClass='active'])
Render out a quick menu for root level pages. |
boolean
|
searchTermExists()
Determine if you have a search term. |
private any
|
sep()
Get the site URL separator. |
any
|
setAuthorService(any authorService)
|
any
|
setCategoryService(any categoryService)
|
any
|
setCommentService(any commentService)
|
any
|
setContentStoreService(any contentStoreService)
|
any
|
setController(any controller)
|
any
|
setEntryService(any entryService)
|
any
|
setMenuItemService(any menuItemService)
|
any
|
setMenuService(any menuService)
|
any
|
setMobileDetector(any mobileDetector)
|
any
|
setModuleService(any moduleService)
|
any
|
setNextModuleEvent(string module, [string URL], [string URI], [string queryString=''], [any persist], [struct persistStruct], [boolean ssl], [any baseURL], [boolean postProcessExempt], [numeric statusCode])
SetNextEvent For ContentBox Modules. |
any
|
setPageService(any pageService)
|
any
|
setRequestService(any requestService)
|
any
|
setResourceService(any resourceService)
|
any
|
setSettingService(any settingService)
|
any
|
setting(any key, [any value])
get contentbox setting value by key or by default value. |
any
|
setWidgetService(any widgetService)
|
any
|
setWirebox(any wirebox)
|
any
|
siteBaseURL()
Get the site base SES URL. |
any
|
siteDescription()
|
any
|
siteEmail()
|
any
|
siteKeywords()
|
any
|
siteName()
site properties ********************************************. |
any
|
siteOutgoingEmail()
|
any
|
siteRoot()
Get the site root location using your configured module's entry point. |
any
|
siteTagLine()
|
any
|
stripHTML(any stringTarget)
utility to strip HTML. |
any
|
subPageMenu([any page], [any excludes=''], [any type='ul'], [any typeClass=''], [any separator=''], [boolean showNone='true'], [any levels='1'], [any elementClass=''], [any parentClass='parent'], [any activeClass='active'], [any activeShowChildren='false'])
Create a sub page menu for a given page or current page. |
any
|
themeName()
Get the name of the current set and active theme. |
any
|
themeRoot()
Get the location of your currently defined theme in the application, great for assets, cfincludes, etc. |
any
|
themeSetting(any key, [any value])
Get a theme setting. |
any
|
widget(any name, [struct args='[runtime expression]'])
Execute a widget's renderit method. |
any
|
widgetRoot()
Get the location of the widgets in the application, great for assets, cfincludes, etc. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- id:authorService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:categoryService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:commentService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:contentStoreService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:entryService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:menuItemService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:menuService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:mobileDetector@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:moduleService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:pageService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:requestServiceserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- resourceService@cbi18nserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:settingService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:widgetService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
Get the admin site root location using the configured module's entry point
Create breadcrumbs for a UI page
page
- Optional page to create link for, else look for current pageseparator
- Breadcrumb separator, defaults to '>'PRIVATE ********************************************
pageRecords
excludes
type
typeClass
separator
showNone
levels
currentLevel
elementClass
parentClass
activeClass
activeShowChildren
Build out ContentBox module links
module
- The module to link this URL tolinkTo
- The handler action combination to link toqueryString
- The query string to append in SES formatssl
- Create the link in SSL or notBuilds out a custom menu
menu
- The root menu object that should be renderedslugCache
- The cache of menu slugs already used in this requestBuilds out a level of a custom menu
items
- An array of menu items for this levellistType
- The type of list to create (derived from owning menu)slugCache
- The cache of menu slugs already used in this requestlistClass
Get a published content store and return its latest active content
slug
- The content slug to retrievedefaultValue
- The default value to use if the content element not found.Get a content store object by slug, if not found it returns null.
slug
- The content slug to retrieveGet a published custom HTML content pieces by slug: DEPRECATED, use contentStore() instead
slug
defaultValue
events ********************************************
state
data
Get the blog entry point as specified in the settings
get contentbox codename
get contentbox codename URL
get contentbox version
Get the current page's or blog entries custom fields as a struct
Get the current page or entries related content array
Get a current page's or blog entrie's custom field by key, you can pass a default value if not found
key
- The custom field keydefaultValue
- The default value to return if not foundReturn the current system flash scope
Get Home Page slug set up by the administrator settings
Get the maintenance message from the ContentBox settings
Get the missing page, if any, usually used in a page not found context
Get a module's configuration structure
module
- The module to retrieve the configuration structure fromGet a module's settings structure
module
- The module to retrieve the configuration settings fromGet the private request collection
Get the RC or PRC collection reference
private
- The boolean bit that says give me the RC by default or true for the private collection (PRC)Get the current request context
Get the curent search results object
get the curent search results HTML content
Get Search Term used
Return a widget object
name
- The name of the installed widget to returnVerifies if the admin module is loaded
Determines if site comments are enabled and if the entry accepts comments
content
- The entry or page content to validate comments also withChecks if the currently viewed page is the homepage.
Detects if the incoming request is from a mobile device or NOT.
Determine if you are in the page view
page
- Optional page slug to determine if you are in that page or not.Determine if you're in a "preview" mode or not
search ********************************************
Get the layout name. DO NOT USE, DEPRECATED. Use themeName() instead.
Layout Location. DO NOT USE, DEPRECATED. Use themeRoot instead.
Get a theme setting. PLEASE DO NOT USE ANYMORE, USE themeSetting()
Link to the admin
event
- An optional event to link tossl
- Use SSL or not, defaults to false.Link to the admin login
ssl
- Use SSL or not, defaults to false.Link to the admin logout
ssl
- Use SSL or not, defaults to false.Link to a specific filtered archive of entries
year
- The year of the archivemonth
- The month of the archiveday
- The day of the archivessl
- Use SSL or not, defaults to false.Create a link to your site blog
ssl
- Use SSL or not, defaults to false.Link to a specific filtered category view of blog entries
category
- The category object or slug to link tossl
- Use SSL or not, defaults to false.Link to a specific filtered category view of blog entries
categorySlug
- The category slug as a string to link tossl
- Use SSL or not, defaults to false.Create a link to a specific comment in a page or in an entry
comment
- The comment to link tossl
- Use SSL or not, defaults to false.Link to the commenting post action, this is where comments are submitted to
content
- The entry or page to link to its commentsssl
- Use SSL or not, defaults to false.Create a link to an entry's or page's comments section
content
- The entry or page to link to its commentsssl
- Use SSL or not, defaults to false.Link to a specific content object
content
- The content object to link tossl
- Use SSL or not, defaults to false.format
- The format output of the content default is HTML but you can pass pdf,print or doc.Link to the content search route
ssl
- Use SSL or not, defaults to false.Link to the content subscription route
ssl
- Use SSL or not, defaults to false.Link to the ContentBox Content Subscription unsubscribe URL
token
- The token to use for unsubscribingssl
Link to a specific blog entry's page
entry
- The entry to link tossl
- Use SSL or not, defaults to false.format
- The format output of the content default is HTML bu you can pass pdf,print or doc.Link to a specific entry's page using a slug only
slug
- The entry slug to link tossl
- Use SSL or not, defaults to false.format
- The format output of the content default is HTML bu you can pass pdf,print or doc.Create a link to your site root or home page entry point for your blog.
ssl
- Use SSL or not, defaults to false.Link to a specific page
page
- The page to link to. This can be a simple value or a page objectssl
- Use SSL or not, defaults to false.format
- The format output of the content default is HTML but you can pass pdf,print or doc.Link to the ContentBox Page RSS Feeds
category
- The category to filter oncomments
- Page comments or not, defaults to falsepage
- The page you want to filter onssl
- Use SSL or not, defaults to false.Link to a specific page using a slug only
slug
- The page slug to link tossl
- Use SSL or not, defaults to false.format
- The format output of the content default is HTML bu you can pass pdf,print or doc.Link to RSS feeds that ContentBox generates, by default it is the recent updates feed
category
- You can optionally pass the category to filter oncomments
- A boolean flag that determines if you want the comments RSS feedentry
- You can optionally pass the entry to filter the comment's RSS feedssl
- Use SSL or not, defaults to false.Link to the search route for this blog
ssl
- Use SSL or not, defaults to false.Create a link to the current page/entry you are on
Link to the ContentBox Site RSS Feeds
category
- The category to filter oncomments
- Do comments RSS feedsslug
- The content slug to filter on when using commentsssl
- Use SSL or not, defaults to false.Create an href to a page's parent
page
- Optional page to create link for, else look for current pagetext
- The optional text to use for the link, else it uses the page's titleRender the incoming event's main view, basically a proxy to ColdBox's controller.getRenderer().renderView().
args
- trueBuild out a menu
slug
- The menu slug to buildtype
- The type either 'html' or 'data'slugCache
- The cache of menu slugs already used in this requestPrepare a ContentBox UI request. This sets ups settings, theme, etc. This method is usualy called automatically for you on the UI module. However, you can use it a-la-carte if you are building ajax or module extensions
layout
- An optional layout to set for you in the request.Renders out an author's avatar
author
- The author object to render an avatar fromsize
- The size of the gravatar, by default we use 25 pixelsclass
Render out categories anywhere using ColdBox collection rendering
template
- The name of the template to use, by default it looks in the 'templates/category.cfm' convention, no '.cfm' pleasecollectionAs
- The name of the iterating object in the template, by default it is called 'category'args
- A structure of name-value pairs to pass to the templatequick HTML ********************************************
entry
quickCommentForm will build a standard ContentBox Comment Form according to the CommentForm widget
content
- The content this comment form will be linked to, page or entryRender out comments anywhere using ColdBox collection rendering
template
- The name of the template to use, by default it looks in the 'templates/comment.cfm' convention, no '.cfm' pleasecollectionAs
- The name of the iterating object in the template, by default it is called 'comment'args
- A structure of name-value pairs to pass to the templateRender out custom fields for the current content
Render out entries in the home page by using our ColdBox collection rendering
template
- The name of the template to use, by default it looks in the 'templates/entry.cfm' convention, no '.cfm' pleasecollectionAs
- The name of the iterating object in the template, by default it is called 'entry'args
- A structure of name-value pairs to pass to the templateRender out an entry using your pre-defined 'entry' template
template
- The name of the template to use, by default it looks in the 'templates/entry.cfm' convention, no '.cfm' pleasecollectionAs
- The name of the iterating object in the template, by default it is called 'entry'args
- A structure of name-value pairs to pass to the templateQuickLayout is a proxy to ColdBox's renderLayout method with the addition of prefixing the location of the layout according to the layout theme you are using. All the arguments are the same as renderLayout()'s methods
layout
- The layout to render outview
- The view to render within this layoutmodule
- The module to explicitly render this layout fromargs
- An optional set of arguments that will be available to this layouts/view rendering ONLYviewModule
- The module to explicitly render the view fromprePostExempt
- If true, pre/post layout interceptors will not be fired. By default they do fireRender out paging for blog entries only
Render out related content anywhere using ColdBox collection rendering
template
- The name of the template to use, by default it looks in the 'templates/relatedContent.cfm' convention, no '.cfm' pleasecollectionAs
- The name of the iterating object in the template, by default it is called 'relatedContent'args
- A structure of name-value pairs to pass to the templatequickSearchForm will build a standard ContentBox Content Search Form according to the SearchForm widget
Render out paging for search content
QuickView is a proxy to ColdBox's renderview method with the addition of prefixing the location of the view according to the theme you are using. All the arguments are the same as `renderView()'s` methods
view
- The view in the theme to rendercache
- Cache the output or notcacheTimeout
- The time in minutes to cache the viewcacheLastAccessTimeout
- The time in minutes the view will be removed from cache if idle or requestedcacheSuffix
- The suffix to add into the cache entry for this view renderingcacheProvider
- The provider to cache this view in, defaults to 'template'module
- The module to render the view from explicitlyargs
- A struct of arguments to pass into the view for rendering, will be available as 'args' in the view.collection
- A collection to use by this Renderer to render the view as many times as the items in the collection (Array or Query)collectionAs
- The name of the collection variable in the partial rendering. If not passed, we will use the name of the view by conventioncollectionStartRow
- The start row to limit the collection rendering withcollectionMaxRows
- The max rows to iterate over the collection rendering withcollectionDelim
- A string to delimit the collection renderings byprepostExempt
- If true, pre/post view interceptors will not be fired. By default they do fireRetrieve i18n resources
resource
- The resource (key) to retrieve from a loaded bundle or pass a @bundledefaultValue
- A default value to send back if the resource (key) not foundlocale
- Pass in which locale to take the resource from. By default it uses the user's current set localevalues
- An array, struct or simple string of value replacements to use on the resource stringbundle
- The bundle alias to use to get the resource from when using multiple resource bundles. By default the bundle name used is 'default'Render out a quick menu for root level pages
excludes
- The list of pages to exclude from the menutype
- The type of menu, valid choices are: ul,ol,li,data,nonetypeClass
- The CSS class(es) to add to the type tag, defaults to 'submenu'separator
- Used if type eq none, to separate the list of href'slevels
- The number of levels to nest hierarchical pages, by default it does only 1 level, * does all levelselementClass
- The name of the CSS class to attach to the menu parentClass
- The name of the CSS class to attach to the menu activeClass
- The name of the CSS class to attach to the menu Determine if you have a search term
Get the site URL separator
authorService
categoryService
commentService
contentStoreService
controller
entryService
menuItemService
menuService
mobileDetector
moduleService
SetNextEvent For ContentBox Modules
module
- The module to link this URL toURL
- The full URL you would like to relocate to instead of an event: ex: URL='http://www.google.com'URI
- The relative URI you would like to relocate to instead of an event: ex: URI='/mypath/awesome/here'queryString
- The query string to append, if needed. If in SES mode it will be translated to convention name value pairspersist
- What request collection keys to persist in flash rampersistStruct
- A structure key-value pairs to persist in flash ramssl
- Whether to relocate in SSL or notbaseURL
- Use this baseURL instead of the index.cfm that is used by default. You can use this for ssl or any full base url you would like to use. Ex: https://mysite.com/index.cfmpostProcessExempt
- Do not fire the postProcess interceptorsstatusCode
- The status code to use in the relocationpageService
requestService
resourceService
settingService
get contentbox setting value by key or by default value
key
- The setting key to getvalue
- The default value to return if not foundwidgetService
wirebox
Get the site base SES URL
site properties ********************************************
Get the site root location using your configured module's entry point
utility to strip HTML
stringTarget
Create a sub page menu for a given page or current page
page
- Optional page to create menu for, else look for current page, this can be a page object or a page slugexcludes
- The list of pages to exclude from the menutype
- The type of menu, valid choices are: ul,ol,li,nonetypeClass
- The CSS class(es) to add to the type tag, defaults to 'submenu'separator
- Used if type eq none, to separate the list of href'sshowNone
- Shows a 'No Sub Pages' message or notlevels
- The number of levels to nest hierarchical pages, by default it does only 1 level, * does all levelselementClass
- The name of the CSS class to attach to the menu parentClass
- The name of the CSS class to attach to the menu activeClass
- The name of the CSS class to attach to the menu activeShowChildren
- If true, then we will show the children of the active menu element, else we just show the active elementGet the name of the current set and active theme
Get the location of your currently defined theme in the application, great for assets, cfincludes, etc
Get a theme setting
key
- The name of the theme settingvalue
- The default value if the layout setting does not existExecute a widget's renderit method
name
- The name of the installed widget to executeargs
- The argument collection to pass to the widget's renderIt() methodGet the location of the widgets in the application, great for assets, cfincludes, etc