1

I have rest_export view to generate json output of nodes. I'm trying to output a the upload date of files in a multivalue filefield, but can't find a solution. I tried to use the "rewrite results" option of the filefield in the view using twig as follows:

{% for item in field_myfiles %} {{ item.entity.timestamp|date("Y-m-d H:i:s") }} {% endfor %}

But it just does not work. Any hints how to achieve this?

0

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.