I need to have PHP on "input" instead of "output" (to feed some tags) so I can't use PHP to change the value of a tag. Is there either a built in function to handle this, or a way to make my own tag that can take another tag's value as input?
What I have now:
{exp:channel:entries channel="test"}
{image}
<picture>
<source srcset="{path}/_mobile/{filename}.{extension}" media="..." />
<source srcset="{path}{filename}.{extension}" media="..." />
<picture>
{/image}
{exp:channel:entries channel="test"}
But the {path}
is absolute and I want it to be relative (to handle https vs http). How would I do this?