Suggestion #6327

page.title

Added by Nathan L over 12 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2010-02-03
Due date:
% Done:

0%

Estimated time:
Has patch:
Tags:

Description

I thought it might be nice to be able to set a page title.

<f:page.title>{blog.name}</f:page.title>

Arguments:

mode
glue
display

Mode has three potential values:
replace - overwrite the existing page title. This is the default.
append - add the value to the end of the existing title
prepend - add the value to the beginning of the existing title

glue is the string to use if the value is append or prepend.

display has two potential values:
none - meaning the viewHelper renders nothing in the template.
render - means that the tag will render it's children. This way you could use it in the context of an h1 tag like this:

<h1><f:page.title display="render">{blog.title}</f:page.title></h1>


Files

TitleViewHelper.php (2.48 KB) TitleViewHelper.php Nathan L, 2010-02-03 04:58

Also available in: Atom PDF