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.

Archive /

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

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

Including external html/php file in content area


Go to End


2 Posts   1964 Views

Avatar
NickJacobs

Community Member, 148 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, 5523 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.