Parsing {CCM} Elements from C5 Content
Permalink
Right now I'm pulling content for some areas directly through database queries. (I.e. Directly from btContentLocal)
What I've realised is that if someone specifies an image or link to a page through the C5 text edit interface - it comes up with:
For example...
Does anyone know of a function I could tie into to parse this content into a readable format? - (I realise you can capture the output of new area ->display to get it done without this issue... Just interested if anyone knows off the top of their head how it's parsed/ what function could be used)
i.e. /files/ -> myimage.jpg
What I've realised is that if someone specifies an image or link to a page through the C5 text edit interface - it comes up with:
<img src="{CCM:FID_123}">
Does anyone know of a function I could tie into to parse this content into a readable format? - (I realise you can capture the output of new area ->display to get it done without this issue... Just interested if anyone knows off the top of their head how it's parsed/ what function could be used)
i.e. /files/ -> myimage.jpg