Score:0

How can I use the time.html.twig template for the node "created" field?

cn flag

When a view shows a date from a newly created field, it uses the time.html.twig template. When it shows the node created field, it just prints a string surrounded by <span> tags.

I'm guessing I just have to somehow specify that the created field must be rendered using the time.html.twig template, but I don't know how to achieve this.

How can I set a view to render the created field using the time.html.twig template?

shelane avatar
cn flag
Where is the date currently printed from? Do you have it being output in a custom twig template of a node? Can you put the code that you are currently using?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.