[TYPO3-english] Strange behaviour with TYPO3 and XML
Andreas Kiessling
andreas.kiessling at web.de
Tue Jun 1 09:31:14 CEST 2010
Hi,
this cannot work:
$this->pi_getFFvalue($this->cObj->data['pi_flexform'], "pages")
when you call your plugin with
10 = USER
10 {
userFunc = tx_mstxml_pi1->showXML
}
pi_getFFvalue uses the field pi_flexform from the cObj (usually a record
from tt_content) to fetch the field "pages", but where should it get the
flexform data from, when you use a userfunction?
You can try to build the PAGE for the XML with styles.content.get (or
just do it manually with CONTENT) and place a content element on your
desired page. (I guess, you did this when you said "watch th page
normally"?)
You could also set the pid in TS, like
10.userFunc.pages = 22
then you should be able to access it in the $conf parameter array that
your function showXML has.
HTH,
Andreas
More information about the TYPO3-english
mailing list