[TYPO3] Re: [Typo3] How to use the navigation title if available, with mf_pagetitle ?

Lyle E. Dodge lyle.dodge at wwc.edu
Tue Jul 4 07:33:20 CEST 2006


Hello,

> As documented, I can get the page title without problem. 
> However, I would like to use the navigation title field
> (nav_title) if available, instead of the page:title.

I've solved this problem using the browser_page_title extension,
http://typo3.org/extensions/repository/search/browser_page_title/1.1.0/

It's very easy.  After installing simply drop the following into your
TypoScript template in your root page:

includeLibs.tx_browserpagetitle =
typo3conf/ext/browser_page_title/class.tx_browserpagetitle.php
config.titleTagFunction = tx_browserpagetitle->getTitle
plugin.browser_page_title {
    defaultTitle = SITE_TITLE | {title}
#    currentTitle = SITE_TITLE | {tx_browserpagetitle_browser_title}
    currentTitle = SITE_TITLE | {nav_title}
}

I left the commented out line in there as that is the system default,
which I prefer to nav_title.  The default method renders a new field on
the Standard page type where you can specify the browser page title.  I
prefer this to nav_title since it doesn't require the page type to be
Advanced.

Best wishes,

--Lyle E. Dodge
lyle.dodge at wwc.edu



More information about the TYPO3-english mailing list