[TYPO3-templavoila] Datastructures in external Files
Dmitry Dulepov [typo3]
dmitry at typo3.org
Wed Aug 13 08:39:56 CEST 2008
Hi!
Jan Bednarik wrote:
> 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.
This is reserved purely for static data structures (use in extensions). Page and FCE do not support it.
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/typo3_code_formatting_in_eclipse/
More information about the TYPO3-project-templavoila
mailing list