[TYPO3] Programmatically saving/loading .t3d files?

Jeff Segars jsegars at alumni.rice.edu
Fri May 30 15:38:18 CEST 2008


Mike wrote:
> Is it possible to save and load .t3d files programatically?  Does the 
> plugin API in typo3 allow for that?
> 
> What we want to do is use .t3d files for exactly what they're normally 
> used for- with the one exception that instead of saving/loading them 
> from the user's local hard drive, we want to save/load them to a 
> directory on the server.
> 
> Then we could write a plugin/extension for typo3 so that the admin 
> interface would allow for that.
> 
> Can this be done, does the API allow the saving/loading of .t3d files 
> programmatically?
> 
> thanks

Mike,
We've done this in the past to show the metadata embedded in T3D files 
but not the actual contents of those files.  Maybe this snippet will 
help get you started.

http://snipplr.com/view/6502/extracting-data-from-a-t3d-file/

The tx_impexp class also contains all the methods for saving a T3D but 
that's a little more involved and less generic.  In our case, we have a 
custom backend record for template packages that contains several data 
structures and template objects.  The snippet below is used to add all 
the associated records to a T3D file.

http://snipplr.com/view/6503/saving-data-to-a-t3d-file/

Thanks,
Jeff


More information about the TYPO3-english mailing list