|
Documentation of New Content Element Wizard
|
|
|
|
pageTS config
|
|
mod.wizards.newContentElements
|
|
|
|
renderMode string Alternative render mode, set to tabs if you want tabs. Default: empty
|
|
wizardItems array Array of wizards
|
|
wizardItems.[group] array Group for wizards. Default groups are: common, special, forms, plugins
|
|
wizardItems.[group].header string Header string for the wizard group
|
|
wizardItems.[group].show string Comma list of wizards to show in this group, * is wildcard for all
|
|
wizardItems.[group].elements array Array of wizards in this group
|
|
wizardItems.[group].elements.[name] array Configuration of single wizard
|
|
icon string Path to the icon
|
|
title string Title of the wizard
|
|
description string Description of the wizard
|
|
tt_content_defValues array Default values for tt_content
|
|
|
|
|
|
|
|
|
|
Examples
|
|
===========================================================================================================================
|
|
render with tabs:
|
|
mod.wizards.newContentElements.renderMode = tabs
|
|
|
|
|
|
hide bulletList:
|
|
mod.wizards.newContentElements.wizardItems.common.show := removeFromList(bullets)
|
|
|
|
|
|
|
|
only show text and textpic in common:
|
|
mod.wizards.newContentElements.wizardItems.common.show = text,textpic
|
|
|
|
|
|
|
|
add a new element (header):
|
|
|
|
mod.wizards.newContentElements.wizardItems.common.elements.header {
|
|
icon = gfx/c_wiz/regular_text.gif
|
|
title = Header
|
|
description = Adds a header element only
|
|
tt_content_defValues {
|
|
CType = header
|
|
}
|
|
}
|
|
mod.wizards.newContentElements.wizardItems.common.show := addToList(header)
|
|
|
|
|
|
|
|
add a prefilled element to a new group
|
|
|
|
mod.wizards.newContentElements.wizardItems.myGroup {
|
|
header = My Company Special Items
|
|
elements.customText {
|
|
icon = gfx/c_wiz/regular_text.gif
|
|
title = Introtext for national startpage
|
|
description = use this element for all national startpages
|
|
tt_content_defValues {
|
|
CType = text
|
|
bodytext (
|
|
<h2>Section Header</h2>
|
|
<p class="bodytext">Lorem ipsum dolor sit amet, consectetur, sadipisci velit ...</p>
|
|
)
|
|
header = Section Header
|
|
header_layout = 100
|
|
}
|
|
}
|
|
}
|
|
mod.wizards.newContentElements.wizardItems.myGroup.show = customText
|