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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


613 Views

Avatar
muskie9

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?