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'
);
$url = $this->cObj->typoLink('', $conf);
$content .= '<marker name="'.htmlspecialchars(utf8_encode($sData["title"])).'"
url = "'.$url.'"
address = "'.utf8_encode($sData["address"]).'"
lng = "'.utf8_encode($sData["longitude"]).'"
lat = "'.utf8_encode($sData["latitude"]).'"
category = "0"
pladsnr = "'.$sData["spot_number"].'"
/>';
}
$content .= '</markers>';

If I watch the page normally, I kan see my XML as normal content.
But if I add &type=444 to see the regular xml, the value in url="" is empty. How cna that be?
If I insert an url manually there is no problem.

I really hope that someone can help me.

Best regards
Jeppe Donslund
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to