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.

Customising the CMS /

Drop In Code


Reply


5 Posts   1075 Views

Avatar
MichaelGMorgan

Community Member, 7 Posts

31 August 2009 at 9:26am

Hello,
I'm working on a site for a client which is based on SilverStripe.
The client has paid to have some 360 panoramas, the format of which I'm not aware of yet.

Basically, I need a way which I can 'drop' some code into a page' content.

Heres the idea... Client goes into the CMS and writes a page full of content. Right in the middle she wants to show off her 360 panorama so she types in [panroama] into her post.

When this page is viewed in a browser on the front end [panorama] is *replaced* with the necessary HTML code to include it.

Thanks

Avatar
Willr

Forum Moderator, 5513 Posts

31 August 2009 at 10:03am

See http://doc.silverstripe.com/doku.php?id=recipes:customising-content-in-your-template for an example of pretty much what you want to do.

Avatar
MichaelGMorgan

Community Member, 7 Posts

31 August 2009 at 10:29am

Clicking on that link takes me to a page which says "This topic does not yet exist". Could you double check that URL for me?
Thanks!

Avatar
Willr

Forum Moderator, 5513 Posts

31 August 2009 at 10:37am

Woops missed the s - http://doc.silverstripe.com/doku.php?id=recipes:customising-content-in-your-templates

Avatar
MichaelGMorgan

Community Member, 7 Posts

31 August 2009 at 11:46am

Thanks - worked perfectly!