Full URLs with a PHx custom modifier
on 02-Nov-2011 | Comments ( 0 ) Tags: Ditto, Evolution, PHP, PHx
Recently I had to implement a RSS feed that displays the full content of the document. When done, I realized that the links and the images where not correctly displayed because all the paths where relative not absolute.
So, I decided to create my own PHx custom modifier. Currently this snippet only replaces the href and src values. It basically adds the site url in front of the paths.
I use it like this in my Ditto RSS template:
<description><![CDATA[ [+content:FullPaths+] ]]></description>

Write a comment