[TYPO3-english] cObjGetSingle don't work as expected and only once
Victor Livakovsky
v-tyok at mail.ru
Tue Oct 26 20:33:21 CEST 2010
Hi, list.
I'm developing an extension and I've found, that cObjGetSingle method works
really strange.
I'm using it in usual way:
1) calling $this->cObj->start to make my data row as current content and
make possible to use 'field' in TS
2) creating object via $this->cObj->cObjGetSingle($this->conf[$view .
'.'][$key], $this->conf[$view . '.'][$key . '.']);
First strange thing:
plugin.tx_myext_pi1.list {
crdate = TEXT
crdate.field = crdate
}
^ this makes no cObject
plugin.tx_myext_pi1.list {
crdate = TEXT
crdate.field = crdate
crdate.wrap = <b>|</b>
}
^ this makes
But in second case cObject is filled only once. If I call
$this->cObj->cObjGetSingle($this->conf[$view . '.'][$key], $this->conf[$view
. '.'][$key . '.']); second time, I'll get only '<b></b>' in output.
Is it a bug or I'm using it in wrong way?
Thank you in advance.
TYPO3 4.4.4
PHP 5.3.2
More information about the TYPO3-english
mailing list