Skip to main content
Oct 16, 2015 2:29 AM UTC
Solved

AEM 6.0 - .txt rendition from .xml asset

Hello!

Is it possible to create a .txt rendition from an asset that is an .xml file? If it is possible, how would one go about doing it?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

So you have dropped a XML file into AEM and now you have a nt:file node for this file? Have you tried to use the default renditions?

For example if you dropped the file int /content/dam/myfile.xml, you can try http://localhost:4502/content/dam/myfile.xml.txt

Cheers,
Jörg

3 replies

joerghoh
Adobe Employee
Adobe Employee
Oct 16, 2015 2:29 AM UTC

I just tried on my local AEM 6.0 instance:

kind regards,
Jörg

Translate
Oct 16, 2015 2:29 AM UTC

Hi Jorg!

The default renditions (which are all image files – .png and .jpeg) are not being created for this file. Which is okay, because I want to create a rendition that is a .txt file.

Here's a screenshot of what I see in CRXDE Lite:

[img]Screen Shot 2015-02-11 at 9.10.03 AM.png[/img]

I tried what you suggested, and it didn't work for me. Do I have to create a custom rendition? If so, how do I do it?

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

So you have dropped a XML file into AEM and now you have a nt:file node for this file? Have you tried to use the default renditions?

For example if you dropped the file int /content/dam/myfile.xml, you can try http://localhost:4502/content/dam/myfile.xml.txt

Cheers,
Jörg

Translate