Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Using the output of compareVersions in a template

Go to End



Community Member, 24 Posts

28 June 2012 at 7:41am

Hi there,

I'm trying to show essentially what you see in the cms when you compare two versions of a page, but in a front end template. I've gone through the function and for the cms it loads the data into a form, getting the fields from getCMSFields. I can return the raw data, but was wondering if there is a trick to get the <ins>, <del> and tags like that to not show up with the text but rather as part of the templates html?