[TYPO3-english] Display page title in page

Jigal van Hemert jigal.van.hemert at typo3.org
Wed Jul 9 15:57:08 CEST 2014


Hi,

Simplest solution in this specific case:

Put in your page template {data.title}

In 'data' the current record is included, so the field 'title' of the 
current page can be accessed.

General solution for all kinds of data:

Look in TypoScript how the page template is defined. It could be 
something like:

page = PAGE
page {
[...]
10 = FLUIDTEMPLATE
10 {
   file = .....
   variables {
     pageTitle = TEXT
     pageTitle.data = page:title
   }
}

Now you can use it in the page template as {pageTitle}. In a partial you 
can use it too, assuming that the partial is included with something like:
<f:render partial="[....]" arguments="{_all}"/>

(the arguments attribute transfers all variables from the main template 
to the partial)

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list