• TypoScript Reference
    latest (9-dev)
  • Sitemap
  • Introduction
    • About this document
    • What's new
    • Credits
    • Feedback
    • General information
      • Case sensitivity
      • Version numbers
  • Data types
    • align
    • boolean
    • case
    • date-conf
    • degree
    • dir
    • function name
    • getText
      • field:
      • parameters:
      • register:
      • leveltitle, leveluid, levelmedia:
      • levelfield:
      • date:
      • page:
      • pagelayout:
      • current:
      • level:
      • GP:
      • getenv:
      • getIndpEnv:
      • TSFE:
      • DB:
      • file:
      • fullRootLine:
      • LLL:
      • path:
      • cObj:
      • session:
      • debug:
      • global:
      • flexform:
    • GraphicColor
    • HTML code
    • HTML-color
    • imageExtension
    • imgResource
    • integer
    • linkWrap
    • list
    • margins
    • Data types: Object types
      • cObject
      • frameObj
      • Gifbuilder Object
      • menu object
    • page_id
    • path
    • pixels
    • positive integer
    • resource
    • rotation
    • space
    • strftime-conf
    • string
    • <tag>
    • < tag >-data
    • < tag >-params
    • target
    • UNIX-time
    • VHalign
    • wrap
    • x,y,w,h
  • Objects and properties
    • Introduction
      • Reference to objects
    • Calc
      • Calculating values (+calc)
        • calc example:
    • optionSplit
      • Introduction
      • PHP-Code
      • Terminology
        • Mainparts
        • Subparts
      • Full example to see how it works
        • Three by three items
      • The optionSplit ruleset
      • More Examples
        • Three by two items
        • Three by one items
        • Two by three items
        • Two by two items
        • Two by one items
        • One by one items
        • One by two items
        • One by three items
        • One by four items
      • More examples: Tricky stuff
        • Three items A, no item R, three items Z
        • One item A, no item R, one items Z
        • One item A, one (unexpected!?) item R, one item Z
        • More
      • Test Code 1 (TypoScript)
      • Test Code 1 Result
      • Test Code 2 (TypoScript)
      • Test Code 2 Result
    • Objects and stdWrap
      • stdWrap example:
  • Conditions
    • About The Syntax Of Conditions
      • General syntax
        • Example
      • Trimming, braces and condition operators
        • Examples
          • Test day of month and month
          • Test day of month
          • Test month and day of month
    • Condition reference
      • language
        • Syntax:
        • Comparison:
      • IP
        • Syntax:
        • Comparison:
        • Examples:
      • hostname
        • Syntax:
        • Comparison:
      • applicationContext
        • Syntax:
        • Comparison:
        • Examples:
      • hour
        • Syntax:
        • Comparison:
        • Examples:
      • minute
        • Syntax:
        • Comparison:
      • month
        • Syntax:
        • Comparison:
      • year
        • Syntax:
        • Comparison:
      • dayofweek
        • Syntax:
        • Comparison:
      • dayofmonth
        • Syntax:
        • Comparison:
      • dayofyear
        • Syntax:
        • Comparison:
      • usergroup
        • Syntax:
        • Comparison:
        • Example:
      • loginUser
        • Syntax:
        • Comparison:
        • Example:
        • Example:
      • page
        • Syntax:
        • Comparison:
        • Example:
      • treeLevel
        • Syntax:
        • Comparison:
        • Example:
      • PIDinRootline
        • Syntax:
        • Comparison:
        • Example:
      • PIDupinRootline
        • Syntax:
        • Comparison:
      • compatVersion
        • Syntax:
        • Comparison:
      • globalVar
        • Syntax:
        • Comparison:
        • Examples:
      • globalString
        • Syntax:
        • Comparison:
        • Examples:
        • Important note on globalVar and globalString
        • Examples:
        • Examples:
      • Custom Conditions
        • Syntax:
        • Comparison:
        • Examples:
      • userFunc
        • Syntax:
        • Comparison:
        • Examples:
  • Functions
    • stdWrap
      • Content-supplying properties of stdWrap
      • Getting data
        • setContentToCurrent
        • addPageCacheTags
        • setCurrent
        • lang
        • data
        • field
        • current
        • cObject
        • numRows
        • preUserFunc
      • Override and conditions
        • override
        • preIfEmptyListNum
        • ifNull
        • ifEmpty
        • ifBlank
        • listNum
        • trim
        • strPad
        • stdWrap
        • required
        • if
        • fieldRequired
      • Parsing data
        • csConv
        • parseFunc
        • HTMLparser
        • split
        • replacement
        • prioriCalc
        • char
        • intval
        • hash
        • round
        • numberFormat
        • date
        • strftime
        • strtotime
        • age
        • case
        • bytes
        • substring
        • cropHTML
        • stripHtml
        • crop
        • rawUrlEncode
        • htmlSpecialChars
        • encodeForJavaScriptValue
        • doubleBrTag
        • br
        • brTag
        • encapsLines
        • keywords
        • innerWrap
        • innerWrap2
        • addParams
        • filelink
        • preCObject
        • postCObject
        • wrapAlign
        • typolink
        • wrap
        • noTrimWrap
        • wrap2
        • dataWrap
        • prepend
        • append
        • wrap3
        • orderedStdWrap
        • outerWrap
        • insertData
        • postUserFunc
        • postUserFuncInt
        • prefixComment
        • editIcons
        • editPanel
        • cache
        • debug
        • debugFunc
        • debugData
    • imgResource
      • ext
      • width
      • height
      • params
      • sample
      • noScale
      • crop
      • cropVariant
      • alternativeTempPath
      • frame
      • import
      • treatIdAsReference
      • maxW
      • maxH
      • minW
      • minH
      • stripProfile
      • Examples
    • imageLinkWrap
      • Properties
      • enable
      • file
      • width
      • height
      • effects
        • Example for effects
      • sample
      • alternativeTempPath
      • title
      • bodyTag
      • wrap
      • target
      • JSwindow
      • JSwindow.expand
      • JSwindow.newWindow
      • JSwindow.altUrl
      • JSwindow.altUrl_noDefaultParams
      • typolink
      • directImageLink
      • linkParams
      • stdWrap
      • What it does
      • Implementation
      • Examples for imageLinkWrap
        • Basic example: Create a link to the showpic script
        • Basic example: Link directly to the original image
        • Example: Larger display in a popup window
        • Example: Printlink
        • Example: Images in lightbox "fancybox"
        • Example: Images in lightbox "TopUp"
    • numRows
      • table
      • select
    • select
      • Comprehensive example
      • uidInList
      • pidInList
      • recursive
      • orderBy
      • groupBy
      • max
      • begin
      • where
      • languageField
      • includeRecordsWithoutDefaultTranslation
      • selectFields
      • join, leftjoin, rightjoin
      • markers
    • split
      • token
      • max
      • min
      • returnKey
      • returnCount
      • cObjNum
      • 1,2,3,4
      • wrap
      • Example:
    • replacement
      • search
      • replace
      • useRegExp
      • useOptionSplitReplace
      • Examples:
    • if
      • directReturn
      • isNull
      • isTrue
      • isFalse
      • isPositive
      • isGreaterThan
      • isLessThan
      • equals
      • isInList
      • value
      • negate
      • Explanation
      • Examples:
    • typolink
      • extTarget
      • fileTarget
      • target
      • no_cache
      • useCacheHash
      • additionalParams
      • addQueryString
      • wrap
      • ATagBeforeWrap
      • parameter
      • forceAbsoluteUrl
      • title
      • JSwindow_params
      • returnLast
      • section
      • ATagParams
      • linkAccessRestrictedPages
      • userFunc
      • Resource references
      • Handler syntax
        • page
        • file
        • folder
      • Using link handlers
    • encapsLines
      • encapsTagList
      • remapTag.[tagname]
      • addAttributes.[tagname]
      • removeWrapping
      • wrapNonWrappedLines
      • innerStdWrap_all
      • encapsLinesStdWrap.[tagname]
      • defaultAlign
      • nonWrappedTag
      • Example:
      • Example:
    • addParams
      • _offset
      • (array of strings)
      • Example:
    • filelink
      • altText
      • ATagBeforeWrap
      • ATagParams
      • emptyTitleHandling
      • file
      • icon
      • icon_link
      • icon_image_ext_list
      • icon_thumbSize
      • iconCObject
      • labelStdWrap
      • longdescURL
      • path
      • removePrependedNumbers
      • size
      • stdWrap
      • target
      • titleText
      • typolinkConfiguration
      • wrap
      • Filelink Example
    • strPad
      • length
      • padWith
      • type
      • Examples:
    • round
      • roundType
      • decimals
      • round
        • Examples:
    • numberFormat
      • decimals
      • dec_point
      • thousands_sep
        • Examples:
    • parseFunc
      • externalBlocks
      • constants
      • short
      • plainTextStdWrap
      • userFunc
      • nonTypoTagStdWrap
      • nonTypoTagUserFunc
      • sword
      • makelinks
      • tags
      • allowTags
      • denyTags
      • if
      • Example:
    • makelinks
      • http.extTarget
      • http.wrap
      • http.ATagBeforeWrap
      • http.keep
      • http.ATagParams
      • mailto.wrap
      • mailto.ATagBeforeWrap
      • mailto.ATagParams
    • tags
      • (array of strings)
      • Example:
    • HTMLparser
      • allowTags
      • stripEmptyTags
      • stripEmptyTags.keepTags
      • tags.[tagname]
      • localNesting
      • globalNesting
      • rmTagIfNoAttrib
      • noAttrib
      • removeTags
      • keepNonMatchedTags
      • htmlSpecialChars
    • HTMLparser_tags
      • overrideAttribs
      • allowedAttribs
      • fixAttrib.[attribute].set
      • fixAttrib.[attribute].unset
      • fixAttrib.[attribute].default
      • fixAttrib.[attribute].always
      • fixAttrib.[attribute].range
      • fixAttrib.[attribute].list
      • fixAttrib.[attribute].removeIfFalse
      • fixAttrib.[attribute].removeIfEquals
      • fixAttrib.[attribute].casesensitiveComp
      • fixAttrib.[attribute].prefixLocalAnchors
      • fixAttrib.[attribute].prefixRelPathWith
      • fixAttrib.[attribute].userFunc
      • protect
      • remap
      • rmTagIfNoAttrib
      • nesting
    • cache
      • key
      • lifetime
      • tags
      • Examples:
      • cache as first-class function:
  • Setup
    • Top-level objects
      • ((abc ...?))
      • ((bcd ...?))
      • config
      • constants
      • FEData
      • Other reserved TLO's:
      • resources
      • sitetitle
      • types
    • plugin
      • Properties
      • userFunc
      • _CSS_DEFAULT_STYLE
      • _CSS_PAGE_STYLE
      • _DEFAULT_PI_VARS.[piVar-key]
      • _LOCAL_LANG.[lang-key].[label-key]
    • config
      • Properties
      • absRefPrefix
      • additionalHeaders
      • admPanel
      • ATagParams
      • baseURL
      • cache
      • cache_clearAtMidnight
      • cache_period
      • compressCss
      • compressJs
      • concatenateCss
      • concatenateJs
      • concatenateJsAndCss
      • content_from_pid_allowOutsideDomain
      • contentObjectExceptionHandler
      • debug
      • defaultGetVars
      • disableAllHeaderCode
      • disableBodyTag
      • disableCharsetHeader
      • disableImgBorderAttr
      • disablePageExternalUrl
      • disablePrefixComment
      • disablePreviewNotification
      • disableLanguageHeader
      • doctype
      • doctypeSwitch
      • enableContentLengthHeader
      • extTarget
      • fileTarget
      • forceTypeValue
      • formMailCharset
        • ftu
      • headerComment
      • htmlTag_dir
      • htmlTag_langKey
      • htmlTag_setParams
      • htmlTag_stdWrap
      • index_descrLgd
      • index_enable
      • index_externals
      • index_metatags
      • inlineStyle2TempFile
      • intTarget
      • language
      • language_alt
      • linkVars
      • locale_all
      • message_page_is_being_generated
      • message_preview
      • message_preview_workspace
      • metaCharset
      • moveJsFromHeaderToFooter
      • MP_defaults
      • MP_disableTypolinkClosestMPvalue
      • MP_mapRootPoints
      • namespaces
      • no_cache
      • noPageTitle
      • pageRendererTemplateFile
      • pageTitle
      • pageTitleFirst
      • pageTitleSeparator
      • removeDefaultCss
      • removeDefaultJS
      • removePageCss
      • sendCacheHeaders
      • sendCacheHeaders_onlyWhenLoginDeniedInBranch
      • spamProtectEmailAddresses
      • spamProtectEmailAddresses_atSubst
      • spamProtectEmailAddresses_lastDotSubst
      • sword_noMixedCase
      • sword_standAlone
      • sys_language_isocode
      • sys_language_isocode_default
      • sys_language_mode
      • sys_language_overlay
      • sys_language_uid
      • titleTagFunction
      • tx_[extension key with no underscores]_[*]
      • typolinkCheckRootline
      • typolinkEnableLinksAcrossDomains
      • typolinkLinkAccessRestrictedPages
      • typolinkLinkAccessRestrictedPages_addParams
      • USERNAME_substToken
      • USERUID_substToken
      • xhtmlDoctype
      • xmlprologue
    • constants
      • Properties
      • (array of keys)
    • PAGE
      • Properties
      • 1,2,3,4...
      • bodyTag
      • bodyTagAdd
      • bodyTagCObject
      • config
      • CSS_inlineStyle
      • cssInline
      • footerData
      • headerData
      • headTag
      • includeCSS.[array]
      • includeCSSLibs.[array]
      • includeJS.[array]
      • includeJSFooter.[array]
      • includeJSFooterlibs.[array]
      • includeJSLibs.[array]
      • inlineLanguageLabelFiles
      • inlineSettings
      • jsFooterInline
      • jsInline
      • meta
      • shortcutIcon
      • stdWrap
      • typeNum
      • wrap
    • meta
      • Properties
        • array of key names
    • carray
      • Properties
      • Property details
        • (stdWrap properties...)
        • (TDParams)
        • 1,2,3,4...
  • Content Objects (cObject)
    • General information
      • PHP information
      • REUSING cOBJECTS
        • Note:
        • Example:
    • CASE
      • Example:
    • COA, COA_INT
      • Examples:
    • CONTENT
      • Comprehensive example
      • select
      • table
      • renderObj
      • slide
      • wrap
      • stdWrap
      • CONTENT object example 1
      • CONTENT object example 2
    • EDITPANEL
      • Example:
    • FILE
      • Example:
    • FILES
      • Special key: "references"
      • Examples:
        • Usage with files
        • Usage with references
        • Usage with sliding
    • FLUIDTEMPLATE
      • Properties
        • templateName
        • template
        • file
        • templateRootPaths
        • layoutRootPath
        • layoutRootPaths
        • partialRootPath
        • partialRootPaths
        • format
        • extbase.pluginName
        • extbase.controllerExtensionName
        • extbase.controllerName
        • extbase.controllerActionName
        • variables
        • settings
        • dataProcessing
        • stdWrap
      • Example:
    • HMENU
      • Example:
      • The .special property
        • special = directory
        • special = list
        • special = updated
          • Example for special = updated:
        • special = rootline
          • Example for special = rootline:
        • special = browse
        • special = keywords
        • special = categories
        • special = language
          • Example:
        • special = userfunction
          • Example: Creating hierarchical menus of custom links
    • IMAGE
      • layoutKey
      • layout
      • layout.layoutKey
      • layout.layoutKey.element
      • layout.layoutKey.source
      • sourceCollection
      • dataKey
      • dataKey.if
      • dataKey.pixelDensity
      • dataKey.width
      • dataKey.height
      • dataKey.maxW
      • dataKey.maxH
      • dataKey.minW
      • dataKey.minH
      • dataKey.quality
      • dataKey.*
      • Examples:
        • Standard rendering
        • Responsive/adaptive rendering
    • IMG_RESOURCE
    • LOAD_REGISTER
      • Example:
    • RECORDS
      • Properties
      • Introduction
      • Property details
        • source
        • categories
        • tables
        • conf
        • dontCheckPid
        • wrap
        • stdWrap
      • Examples
        • Selection with source
        • Selection with source II
        • Selection with categories
    • RESTORE_REGISTER
      • Example:
    • SVG
      • Example:
    • TEMPLATE
      • Example:
    • TEXT
      • Examples:
    • USER and USER_INT
      • userFunc
      • (properties you define)
      • stdWrap
      • Examples:
        • Example 1
        • Example 2
        • Example 3
        • Example 4
  • GIFBUILDER
    • GIFBUILDER
      • Note on (+calc)
      • The "_GIFBUILDER" Top Level Object
    • Object names in this section
      • TEXT
      • SHADOW
      • EMBOSS
      • OUTLINE
      • BOX
      • ELLIPSE
        • Example:
      • IMAGE
      • EFFECT
        • Syntax:
        • Example:
      • WORKAREA
      • CROP
      • SCALE
      • ADJUST
        • Example:
    • NON-Gifbuilder Objects
      • IMGMAP
  • MENU Objects
    • Common properties
      • showAccessRestrictedPages
    • Common item states for TMENU, GMENU and IMGMENU
    • [menu object].sectionIndex
      • The data-record /Behind the scene
    • GMENU
      • Additional properties for Menu item states
    • TMENU
    • TMENUITEM
    • IMGMENU
    • IMGMENUITEM
  • Appendix A – PHP include scripts
    • Including your script
      • $content
      • $conf
      • White spaces
      • $GLOBALS['TSFE']->set_no_cache()
        • Example:
      • $this->cObjGetSingle(value, properties)
        • Example:
      • $this->stdWrap(value, properties)
        • Example:
      • Internal variables in the main frontend object, TSFE
      • Global variables
  • Linktargets
    • Targets For Cross-Referencing
 
TypoScript Reference
  • Docs »
  • MENU Objects »
  • [menu object].sectionIndex
  • Edit me on GitHub

[menu object].sectionIndex¶

This is a property that all menu objects share. If it is set, then the menu will not consist of links to pages on the "next level" but rather of links to the parent page to the menu, but in addition "#"-links to the cObjects rendered on the page. In other words, the menu items will be a section index with links to the content elements on the page (by default with colPos=0!).

.sectionIndex = [boolean]

If you set this, all content elements (from tt_content table) of "Column" = "Normal" and the "Index"-check box clicked are selected. This corresponds to the "Menu/Sitemap" content element when "Section index" is selected as type.

.sectionIndex.type = "all" / "header"

If you set this additional property to "all", then the "Index"-checkbox is not considered and all content elements - by default with colPos=0 - are selected.

If this property is "header" then only content elements with a visible header-layout (and a non-empty 'header'-field!) is selected. In other words, if the header layout of an element is set to "Hidden" then the page will not appear in the menu.

.sectionIndex.includeHiddenHeaders = [boolean]

If you set this and sectionIndex.type is set to "header", also elements with a header layout set to "Hidden" will appear in the menu. This was the default behaviour until TYPO3 4.6 and with this property you can enable this old behaviour again.

.sectionIndex.useColPos = [integer /stdWrap]

This property allows you to set the colPos which should be used in the where clause of the query. Possible values are integers, default is "0".

Any positive integer and 0 will lead to a where clause containing "colPos=x" with x being the aforementioned integer. A negative value drops the filter "colPos=x" completely.

Example:

tt_content.menu.20.3.1.sectionIndex.useColPos = -1

The data-record /Behind the scene¶

When the menu-records are selected it works like this: The parent page record is used as the "base" for the menu-record. That means that any "no_cache" or "target"-properties of the parent page are used for the whole menu.

But of course some fields from the tt_content records are transferred. This is how it is mapped:

$temp[$row[uid]]=$basePageRow;
$temp[$row[uid]]['title']=$row['header'];
$temp[$row[uid]]['subtitle']=$row['subheader'];
$temp[$row[uid]]['starttime']=$row['starttime'];
$temp[$row[uid]]['endtime']=$row['endtime'];
$temp[$row[uid]]['fe_group']=$row['fe_group'];
$temp[$row[uid]]['media']=$row['media'];
$temp[$row[uid]]['header_layout']=$row['header_layout'];
$temp[$row[uid]]['bodytext']=$row['bodytext'];
$temp[$row[uid]]['image']=$row['image'];
$temp[$row[uid]]['sectionIndex_uid']=$row['uid'];

Basically this shows that

- the field "header" and "subheader" from tt_content are mapped to "title" and "subtitle" in the pages-record. Thus you shouldn't need to change your standard menu objects to fit this thing...

- the fields "starttime", "endtime", "fe_group", "media" from tt_content are mapped to the same fields in a pages-record.

- the fields "header_layout", "bodytext" and "image" are mapped to non-existing fields in the page-record

- a new field, "sectionIndex_uid" is introduced in the page record which is detected by the function TYPO3CMSCoreTypoScriptTemplateService->linkData(). If this field is present in a page record, the linkData()-function will prepend a hash-mark and the number of the field.

Note:

You cannot create submenus to sectionIndex-menus. That does not make any sense as these elements are not pages and thereby have no children.

Next Previous

View page source

© Copyright since 2000 by the TYPO3 Documentation Team

Last rendered on Apr 14, 2018 22:48

Built with Sphinx and t3SphinxThemeRtd. Report theme issues here.

Legal Info

Versions
Project
Home
Contact
Discussions
Issues
Repository
Downloads
Related Links v: latest (9-dev)