[TYPO3-english] Strange behaviour with TYPO3 and XML
Bjoern Pedersen
bjoern.pedersen at frm2.tum.de
Tue Jun 1 08:47:45 CEST 2010
Am 01.06.2010 08:04, schrieb Jeppe Donslund:
> Hi.
>
> I use this to generate XML from my TYPO3 output:
>
> xmloutput <
> xmloutput= PAGE
> xmloutput {
> typeNum=444
> config.disableAllHeaderCode = 1
> config.additionalHeaders = Content-type:text/xml
> includeLibs.mstxml = EXT:extkey/pi1/class.tx_mstxml_pi1.php
> 10 = USER
> 10 {
> userFunc = tx_mstxml_pi1->showXML
> }
> }
>
> And this code makes my xml:
>
> $content = '<?xml version="1.0" encoding="UTF-8"?><markers>';
> while ($sData = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($sRef)) {
> $conf = array(
> // Link to current page
> 'parameter' => $this->pi_getFFvalue($this->cObj->data['pi_flexform'],
> "pages"),
> //'parameter' => 22,
> // Set additional parameters
> 'additionalParams' => '&tx_mstfiskeplads_pi1[spot]='.$sData["uid"],
> // We must add cHash because we use parameters
> 'useCacheHash' => true,
> // We want link only
> 'returnLast' => 'url'
> );
Try debbuging the return from $this->pi_getFFvalue. My guess would be
that it is a string or empty, not an int and that causes your problem.
More information about the TYPO3-english
mailing list