

Sometimes it's usefull to customize the page title. With this snippet you can change the page title or add some special string.
config.noPageTitle = 2 page.headerData.5 = TEXT page.headerData.5.field = subtitle // title page.headerData.5.wrap = <title>Domain.com: |</title>
Here is another sample that reads the page title wich is defined under "Template".
temp.pageTitle=COA temp.pageTitle{ wrap=This is the title:| 5=RECORDS 5{ # id of the template record source=1 tables = sys_template conf.sys_template > conf.sys_template = TEXT conf.sys_template.field=sitetitle } }
This snippet was submited by Dominic Pfluger




John Dawson
www.dawsoninteractive.com
config.noPageTitle = 2
page.headerData = COA
page.headerData {
20 = TEXT
20 {
field = description // title // subtitle
#value = some text in here
wrap= <title>| - {$pageTitle} </title>
}
}
## News pages
###################################
[PIDupinRootline = 10]
newsTitle=COA
newsTitle {
wrap= <title> | - {$pageTitle}</title>
5 = RECORDS
5 {
source = {GPvar:tx_ttnews|tt_news}
source.insertData = 1
tables = tt_news
conf.tt_news >
conf.tt_news = TEXT
conf.tt_news.field=title
}
}
page.headerData.20 < newsTitle
[end]
I am trying to use my page subtitle to show a desciption text under then main navigation. example
------------------
MENU Menu Menu
------------------
Description text(subtitle) would go here in another <div>.
I cant find the answer anywhere and i am a noob when it comes to TS :(.
Help please.
Add comment