TYPO3 Logo
TypoScript Explained
Options
Give feedback View source How to edit Edit on GitHub Full documentation (single file)

TypoScript Explained

About TypoScript

  • Introduction
  • Getting started
    • Quick overview
    • First steps
    • Page
    • Content records
    • Create a menu with TypoScript
    • fluid_styled_content
    • TypoScript objects
      • Objects executing database queries
      • Objects rendering content
      • Further objects
    • TypoScript functions
      • stdWrap
      • getText / data
      • imgResource
      • select
      • split
      • if
      • typolink
      • parseFunc
    • Next steps
  • Usage
    • TypoScript in Sites
    • TypoScript in Extensions
    • Backend Module
    • Access TypoScript in an extension
    • Constants
    • Register
    • Debugging / analyzing
  • Using and setting TSconfig
    • Setting page TSconfig
    • Setting user TSconfig
    • Conditions
    • PHP API
  • Syntax
    • Identifiers
    • Code blocks
    • Operators
    • Comments
    • Conditions
    • File imports
    • String formats
    • TSconfig differences

Frontend TypoScript

  • Page
    • PAGE Examples
  • Content Objects (cObject)
    • Content objects (general information)
    • CASE
    • Content object array - COA, COA_INT
    • CONTENT
    • EXTBASEPLUGIN
    • FILES
    • FLUIDTEMPLATE
    • HMENU
      • TMENU
        • TMENUITEM
    • IMAGE
      • GIFBUILDER
        • Examples
        • Colors in TypoScript GIFBUILDER
        • Note on (+calc)
        • Properties
        • GIFBUILDER objects
          • ADJUST
          • BOX
          • CROP
          • EFFECT
          • ELLIPSE
          • EMBOSS
          • IMAGE
          • OUTLINE
          • SCALE
          • SHADOW
          • TEXT
          • WORKAREA
    • IMG_RESOURCE
    • LOAD_REGISTER
    • PAGEVIEW
    • RECORDS
    • RESTORE_REGISTER
    • SVG
    • TEXT
    • USER and USER_INT
  • Data processors
    • comma-separated-value
    • database-query
    • files
    • flex-form
    • gallery
    • language-menu
    • menu
      • Browse
      • Categories
      • Directory
      • Keywords
      • Language
      • List
      • Rootline / Breadcrumb
      • Updated
      • Userfunction
    • page-content
    • record-transformation
    • site
    • site-language
    • split
    • Custom data processors
  • Config
  • Top-level objects
    • page & config
    • module
    • plugin
    • Reserved top-level objects
  • Functions
    • cache
    • Calc
    • Data / getText
    • encapsLines
    • getEnv
    • HTMLparser
    • HTMLparser_tags
    • if
    • imageLinkWrap
    • imgResource
    • makelinks
    • numberFormat
    • numRows
    • optionSplit
    • parseFunc
    • replacement
    • round
    • select
    • split
    • stdWrap
    • strPad
    • tags
    • typolink
    • Wrap
  • Conditions

Backend TypoScript

  • Page TSconfig Reference
    • colorPalettes
    • mod
      • SHARED
      • web_info
      • web_layout
        • Backend layouts
      • web_list
      • web_view
      • wizards
    • options
    • RTE
    • TCAdefaults
    • TCEFORM
    • TCEMAIN
    • templates
    • tx_*
  • User TSconfig reference
    • admPanel (EXT:adminpanel)
    • auth
    • options
    • page
    • permissions
    • setup
    • TCAdefaults
    • tx_*

Appendix

  • PHP and TypoScript
  • Glossary
  • Sitemap
  1. TypoScript Explained
  2. Data processors
  3. menu
  4. Browse
Give feedback Edit on GitHub

Browse navigation - previous and next links

This data processor provides pages which give your reader the possibility to browse to the previous page, to the next page, to a page with the table of contents and so on.

Tip

In older TypoScript browser menus were created using the HMENU object. This still works for backward compatibility reasons. We recommend to only use data processors for newly created menus.

See TYPO3 11, Browse navigation for examples how this was done.

Attention

Mount pages are not supported!

  • Properties
  • Example: Display a browse navigation

Properties

Name Type Default
special.value
integer /stdWrap current page ID
special.items
list of item names separated by | index|up|next|prev
special.items.prevnextToSection
boolean false
special.excludeNoSearchPages
boolean false

special.value

special.value
Type
integer /stdWrap
Default
current page ID

The default value can be overridden with a different page ID as starting point for the menu in some rare use cases.

special.items

special.items
Type
list of item names separated by |
Default
index|up|next|prev

A list, separated by pipes |, containing the following item types:

next / prev

Links to the next page / the previous page. Next and previous pages are from the same "pid" as the current page id (or "value") - that is the next item in a menu with the current page. Also referred to as current level.

If special.items.prevnextToSection is set then next / prev will link to the first page of the next section / to the last page of the previous section, too.

nextsection / prevsection
Links to the next section / the previous section. A section is defined as the subpages of a page on the same level as the parent (pid) page of the current page. Will not work if the parent page of the current page is the root page of the site.
nextsection_last / prevsection_last
Where nextsection / prevsection links to the first page in a section, these link to the last page. If there is only one page in the section that will be both first and last. Will not work if the parent page of the current page is the root page of the site.
first / last
First / last page on the current level. If there is only one page on the current level that page will be both first and last.
up
Links to the parent (pid) page of the current page (up 1 level). Will always be available.
index
Links to the parent of the parent page of the current page(up 2 levels). May not be available, if that page is out of the root line.

special.items.prevnextToSection

special.items.prevnextToSection
Type
boolean
Default
false

If set, the prev and next navigation will jump to the next section when it reaches the end of pages in the current section. That way prev and next will also link to the first page of the next section / to the last page of the previous section.

special.excludeNoSearchPages

special.excludeNoSearchPages
Type
boolean
Default
false

If set, pages marked with the no search checkbox will be excluded from the menu.

Example: Display a browse navigation

The menu data processor with special = browse returns the found items as an array. The items in this array contain no information about what kind of item (previous, next, up, etc) they are. We therefore recommend to only use one item kind per data processor:

config/sites/mySite/setup.typoscript
page = PAGE
page {
    10 = PAGEVIEW
    10 {
        dataProcessing {
            50 = menu
            50 {
                special = browse
                as = prevNavigation
                special {
                    items = prev
                    items.prevnextToSection = 1
                }
            }
            60 = menu
            60 {
                special = browse
                as = nextNavigation
                special {
                    items = next
                    items.prevnextToSection = 1
                }
            }
            70 = menu
            70 {
                special = browse
                as = upNavigation
                special {
                    items = up
                }
            }
        }
    }
}
Copied!

The result of each data processor can then be used, assuming that the result is the first item of the array saved into the database.

  • Previous
  • Next
Reference to the headline

Copy and freely share the link

This link target has no permanent anchor assigned. You can make a pull request on GitHub to suggest an anchor. The link below can be used, but is prone to change if the page gets moved.

Copy this link into your TYPO3 manual.

  • Home
  • Contact
  • Issues
  • Repository

Last rendered: Apr 25, 2025 15:37

© since 2012 by the TYPO3 contributors
  • Legal Notice
  • Privacy Policy