[TYPO3-templavoila] Datastructures in external Files
Jan Bednarik
info at bednarik.org
Wed Aug 13 08:17:04 CEST 2008
Hi,
> Not possible to include external XML. This has been asked many times.
however, the source codes look like they could handle it. Look at this
piece of code:
$srcPointer = $row['tx_templavoila_ds'];
if (t3lib_div::testInt($srcPointer)) { // If integer, then its a
record we will look up:
$DSrec =
$GLOBALS['TSFE']->sys_page->checkRecord('tx_templavoila_datastructure',
$srcPointer);
$DS = t3lib_div::xml2array($DSrec['dataprot']);
} else { // Otherwise expect it to be a file:
$file = t3lib_div::getFileAbsFileName($srcPointer);
if ($file && @is_file($file)) {
$DS = t3lib_div::xml2array(t3lib_div::getUrl($file));
}
}
the problem is, that TCA defines it as database-relation (select). So if
you'd make an extension that would change the field into "file" type, it
may just work.
Just guessing ;)
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
More information about the TYPO3-project-templavoila
mailing list