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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Including external html/php file in content area


Reply

2 Posts   1563 Views

Avatar
NickJacobs

12 August 2008 at 2:25pm Community Member, 144 Posts

Hi, I need to know if there is a way to include an external page in the content of an ss page. I need to include a selectable map (images / javascript) into the middle of the content of the page. I thought the best way would be to just include it .... but not sure of the best way to achieve this in ss. I found this in the forums http://www.silverstripe.com/site-builders-forum/flat/103626?start=8 , could be a way to do it....any ideas much appreciated.

Avatar
Willr

12 August 2008 at 9:14pm Forum Moderator, 5511 Posts

have alook at this page - http://doc.silverstripe.com/doku.php?id=recipes:customising-content-in-your-templates&s=paypal which shows an example of rendering a php function into the content area where you have a token (such as $Paypal in the content). You could slightly adapt that so that the Paypal() method outputs your map.