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 you have read our privacy policy.

Browse other questions tagged or ask your own question.