[Typo3-dev] External XML file

Dieter Menne dieter.menne at menne-biomed.de
Sat Apr 10 18:04:13 CEST 2004


Following Casper's advice in

http://typo3.org/1427+M5c3271b9efd.0.html

I tried to use an external file for XML editing. Following the example on page 8
of TemplaVoila (Setting up a Data Structure XML file ...> I could not get the
syntax right,
should be something like
<whatever> FILE:fileadmin/xml/MIXMLCol3.xml</whatever>.

Looking up the code, the simple way would be to stuff a file namen into
tx_templavoila_ds, as shown below (example works), but how do I get the filename
into that field without manual cheating?

 function renderElement($row,$table) {
  if ($GLOBALS['TT']->LR) $GLOBALS['TT']->push('Get DS, TO and data');
   // Get data structure:
  $srcPointer = $row['tx_templavoila_ds'];
#    $srcPointer='fileadmin/scripts/MIXMLCol3.xml'; // Dieter : Force extenal
  if (t3lib_div::testInt($srcPointer)) { // If integer, then its a record we
will look up:
   $DSrec =
$GLOBALS['TSFE']->sys_page->checkRecord('tx_templavoila_datastructure',$srcPoint
er);
`

Dieter Menne






More information about the TYPO3-dev mailing list