|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Is there a way to handle the datastructure definitions in external files. The
datastructure-xml often becomes quite complex and editing it with the internal editor is not funny at all. Currently i work with external ds-xml files and eclipse/subversion but i have to paste the ds code into the record each time i change anything. Does anyone know a better way? Regards Martin _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#2
|
|||
|
|||
|
Not possible to include external XML. This has been asked many times.
Cheers, Jörg. Martin Ficzel schrieb: > Is there a way to handle the datastructure definitions in external > files. The datastructure-xml often becomes quite complex and editing it > with the internal editor is not funny at all. > > Currently i work with external ds-xml files and eclipse/subversion but i > have to paste the ds code into the record each time i change anything. > > Does anyone know a better way? Regards Martin _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#3
|
|||
|
|||
|
Hi guys,
Firefox extension "It's all text" with notepad++ or pspad Daniel Joerg Wagner schreef: > Not possible to include external XML. This has been asked many times. > > Cheers, > Jörg. > > > Martin Ficzel schrieb: >> Is there a way to handle the datastructure definitions in external >> files. The datastructure-xml often becomes quite complex and editing >> it with the internal editor is not funny at all. >> >> Currently i work with external ds-xml files and eclipse/subversion but >> i have to paste the ds code into the record each time i change anything. >> >> Does anyone know a better way? Regards Martin _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#4
|
|||
|
|||
|
Thanks for the answers.
The FF-Extension looks nice but cannot compete with eclipse/subversion. I will think about creating a patch for external datastructures. Regards Martin _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#5
|
|||
|
|||
|
Hi Martin,
> The FF-Extension looks nice but cannot compete with eclipse/subversion. > I will think about creating a patch for external datastructures. Would be nice. -- Xavier Perseguers http://xavier.perseguers.ch/en/tutorials/typo3.html _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#6
|
|||
|
|||
|
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 _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#7
|
|||
|
|||
|
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-extens...velopment/book In the blog: http://typo3bloke.net/post-details/t...ng_in_eclipse/ _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#8
|
|||
|
|||
|
> This is reserved purely for static data structures (use in extensions).
> Page and FCE do not support it. I see. Anyway, I'd appriciate it too. -- Jan Bednarik www.bednarik.org - web about Typo3 in czech _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#9
|
|||
|
|||
|
Hi!
Jan Bednarik wrote: >> This is reserved purely for static data structures (use in >> extensions). Page and FCE do not support it. > > I see. Anyway, I'd appriciate it too. Well, me too I'd love to keep DS/TO external.It is not only TV question, TYPO3 Core must support DSes in the external files. So it is a little more work than it seems. -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/post-details/t...ng_in_eclipse/ _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-templavoila] Problems mapping XML-files as TV-templates | Franz Koch | typo3-project-templavoila@lists.netfielders.de | 3 | 26.07.2008 12:17 |
| [TYPO3-templavoila] Indexing External Documents | Nick Weisser | typo3-project-templavoila@lists.netfielders.de | 0 | 19.05.2008 14:56 |
| [TYPO3-templavoila] Save TV Datastructures in external files | Simon Tuck | typo3-project-templavoila@lists.netfielders.de | 3 | 26.02.2008 16:29 |
| [TYPO3-templavoila] how to include files that require tv mapping | Cate & Peter | typo3-project-templavoila@lists.netfielders.de | 1 | 13.11.2007 10:56 |
| [TYPO3] Indexing external files with crawler | Jan HanÄiÄ | typo3-english@lists.netfielders.de | 4 | 06.08.2007 19:31 |