[TYPO3-dam] DAM to export XML

Georg Kuehnberger georg at georg.org
Wed Dec 1 21:19:27 CET 2010


On 30.11.2010 10:28, Marco Huber wrote:
> Or you can do it with pure typoscript. For example by creating a new
> pagetype (not tested):

Great idea, and highly flexible.

My not so flexible, however instant, solution would be to use the 
phpmyadmin xml-export function on the table tx_dam.

regards georg


> damxml = PAGE
> damxml.typeNum = 123456
> damxml.config.disableAllHeaderCode = 1
> damxml.10 = TEXT
> damxml.10.value = <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> damxml.20 = CONTENT
> damxml.20 {
> select {
> #uid of sysfolder "media"
> pidInList = 1
> #additional statements see tsref
> }
> table = tx_dam
> renderObj = COA
> renderObj {
> wrap = <damElement type="array">|</damElement>
> 10 = TEXT
> 10.field = title
> 10.wrap = <title>|</title>
> 20 = TEXT
> 20.field = file_path
> 20.wrap = <filePath>|</filePath>
> 30 = TEXT
> 30.field = file_name
> 30.wrap = <fileName>|</fileName>
> #for every field you want to have in your xml
> }
>
> }
>
> Am 29.11.2010 21:05, schrieb Lorenz Ulrich:
>> I don't know of an XML export function in DAM, but with some PHP
>> knowledge you can do it pretty easy by writing the data from table
>> tx_dam to an XML structure.



More information about the TYPO3-project-dam mailing list