[Typo3-dev] GTMENU
tapio
tapio.markula at dnainternet.net
Wed Sep 7 12:04:26 CEST 2005
> thx tapio, but I know how to extend classes...but not how to extend
> _Typoscript_ itself. unfortunately just extending tslib_menu.php doesnt
> add a new TS property/type ... and thats my problem...
>
> thx for your help!
I tested following:
mod.web_layout {
disablePathInfo=0
disableSearchBox=0
disableAdvanced=0
disableNewContentElementWizard=0
disableBigButtons=1
noCreateRecordsLink=0
}
disablePathInfo=0 is *my extension*
Typo 3 adds this value *automatic*.
See in 'db_layout.php':
$dblist->option_showBigButtons =
$this->modTSconfig['properties']['disableBigButtons'] ? 0 : 1;
If you print
print $this->modTSconfig['properties']['disableBigButtons'];
you get in this case '1'
I tested with
print $this->modTSconfig['properties']['disablePathInfo'];
and I got '0'
result of printing was '01' - Typo3 identified my TypoScript extension.
Setting 'disablePathInfo=1'
result of printing was '11'
At least is is quite easy to extend some configuration options for
'db_layout.php'.
In this case I can prevent rendering of the path info:
$dblist->option_pathInfo =
$this->modTSconfig['properties']['disablePathInfo'] ? 0 : 1;
...
if($dblist->option_pathInfo==1)
$headerSection .= '<span class="pathInfo">'.
$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.path',1).': '.
'<span class="db_layout-page-header"
title="'.htmlspecialchars($this->pageinfo['_thePathFull']).'">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'],-50)).'</span></span>';
Presumably this system works also for 'alt_doc.php'.
Maybe this system works elsewhere? Try this idea!
Try to find where related TS has been defined and add there a new
variable for TS in the same principle I made a new configuration option
for the 'db_layout.php'.
More information about the TYPO3-dev
mailing list