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.

Customising the CMS /

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

Drop In Code


Go to End


5 Posts   1645 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!