[TYPO3-english] Display page title in page

bernd wilke t3ng at bernd-wilke.net
Tue Jul 8 16:48:51 CEST 2014


Am 08.07.14 16:19, schrieb armin otto:
> Hi,
>
> I have installed typo3 6.19 with the bootstrap package and I'm now
> modifying it to my needs.
>
> It was ages ago when I first had to wrestle with typo3, so forgive me
> for not being quite up to date on how typo3 seems to work right now. :)
>
> Anyway, what I am trying to do right now should be simple:  I want the
> header partial template in
> typo3conf/ext/speciality/Resources/Private/Partials/header.html  to
> render the page title as defined in the typo3 backend

[...]

> I was kinda hoping of having only to insert one line like [code]
> <h1> <v:page.title /> </h1>
> [/code]
> and be done with it, but no such luck.
>
> So: What is the best way to do it?

you need to learn a little bit of fluid-templating.
http://wiki.typo3.org/Fluid
http://www.typovision.de/fileadmin/slides/ExtbaseFluidCheatSheetTypofaktum.pdf 
(page 3)


as there is no viewhelper for the page-title you can set a variable in TS
page.10.variables.page_title = TEXT
page.10.variables.page_title.field = title

and use it in your Fluid-Template:
{page_title}

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list