[TYPO3-dev] Reversible rootline in TITLE

Christopher Torgalson bedlamhotel at gmail.com
Wed Feb 21 19:02:38 CET 2007


Hi,

On 2/21/07, John Angel <johnange at gmail.com> wrote:
> Hi,
>
> To show rootline in page TITLE tag the code is below:
> Root > Some page > Another page
>
> Is there a simple way to show reversible rootline, e.g:
> Another page - Some page - Root
>
>
> temp.page_title = HMENU
> temp.page_title {
>     wrap = <title>|</title>
>     special = rootline
>     special.range = 0|-1
>
>     1 = TMENU
>     1.NO.doNotLinkIt=1
>     1.NO.stdWarp.noTrimWrap = | | |
>     1.NO.allWrap = |&nbsp;&gt;&nbsp; |*||*|   |
> }
>
> config.noPageTitle = 2
> page.headerData.10 < temp.page_title


If you can write a php function to change the output of your TS into
the form you'd like, you can use stdWrap's 'postUserFUnc' property.
HMENU has .stdWrap properties, so you should be able to add something
like

temp.page_title.stdWrap.postUserFunc = user_functionName

See the TSref's sections on stdWrap [1] and the USER cObject [2] for
more complete info--by the way, the example php files referred to in
the stdWrap section on postUserfunc are IN your typo3 install at
typo3/sysext/cms/tslib/media/scripts.

-- 
Christopher Torgalson


[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/5/1/
[2] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/8/22/




More information about the TYPO3-dev mailing list