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   1618 Views

Avatar
NickJacobs

Community Member, 144 Posts

12 August 2008 at 2:25pm

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

Forum Moderator, 5513 Posts

12 August 2008 at 9:14pm

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.