[Typo3-dev] Retrieving homepage name.
Markus Lange
markus.lange at bgm-gmbh.de
Thu Jul 8 14:00:43 CEST 2004
Daniel PXtzinger said:
>> What would be the correct way to retrieve the name of an homepage.
>> Currently I use this global variable:
>> $GLOBALS["TSFE"]->rootLine[0]["title"]
> Try something with this class. Here is just a copy of a part from my
> backend
> module:
> $sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
> $rootLine = $sys_page->getRootLine($this->id);
> $tmpl->runThroughTemplates($rootLine,0); // This generates the
> constants/config + hierarchy info for the template.
> $tmpl->generateConfig(); //Generate
> $sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
> $rootLine = $sys_page->getRootLine($this->id);
> $tmpl->runThroughTemplates($rootLine,0); // This generates the
> constants/config + hierarchy info for the template.
> $tmpl->generateConfig(); //Generate
what about this?:
##TS
plugin.XXX {
title {
data = leveltitle : 0
wrap = <b> | </b>
}
}
##php
$title = $this->cObj->TEXT($this->conf['title.']);
hope this works!
--
Markus Lange
business group munich GmbH
Tel. + 49 89 / 660 7 999 - 36
Fax + 49 89 / 660 7 999 - 10
Mobil + 49 173 / 57 06 453
www.bgm-gmbh.de
http://typo3.bgm-gmbh.de
More information about the TYPO3-dev
mailing list