Hi,
Currently, for a weblink, I have the template for getResources set up like this:
{
title: '[[+pagetitle]]',
start: new Date([[+tv.StartDate:strtotime:date=`%Y`]],[[+tv.StartDate:strtotime:date=`%m`:subtract=`1`]],[[+tv.StartDate:strtotime:date=`%d`]]),
url: '[[+content]]'
},
If the page is a normal document I would like that
changed into
What would be the best way to do this in Revolution?
I was looking for a phx solution but the only thing I found is IF and I’m not sure it works.
Maybe the easiest way is to use runSnippet in a custom snippet.
Thx