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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Drop In Code


Go to End


5 Posts   1355 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, 5523 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, 5523 Posts

31 August 2009 at 10:37am

Avatar
MichaelGMorgan

Community Member, 7 Posts

31 August 2009 at 11:46am

Thanks - worked perfectly!