[Typo3] Using tscobj
Tobias Erlacher
erl at maguma.com
Mon Sep 5 16:23:29 CEST 2005
Hi,
as there is written in tsref, special.value can only contain the id(s)
of the page/s.
extract from tslib/class.tslib_menu.php
line 324
$value = $this->conf['special.']['value'];
line 613
case 'browse':
list($value)=t3lib_div::intExplode(',',$value);
if (!$value) {
$value=$GLOBALS['TSFE']->page['uid'];
}
As you can see if the value is empty, it is set to the current page id.
to use the field property it should be a stdWrap.
it would be only a little modification, but i dont like changing core files.
anyway, transforming special.value to a stdwrap is the way to go
$value =
$this->parent_cObj->stdWrap($this->conf['special.']['value'],$this->conf['special.']['value.']);
maybe we will see this little improvements in one of the next releases
of typo3.
tobias erlacher
www.typo3wizard.com
More information about the TYPO3-english
mailing list