[TYPO3-dam] DAM to export XML

Marco Huber marco.huber at marit.ag
Tue Nov 30 10:28:33 CET 2010


Or you can do it with pure typoscript. For example by creating a new 
pagetype (not tested):

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