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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Shortcode special function (help / hint) ?


Go to End


684 Views

Avatar
tomys

Community Member, 4 Posts

6 November 2015 at 10:19am

Hi,

i still have develope some shortcodes until now. But yet i have a little bit different request from our sports community page.

We need a shortcode to extract some DIV (or table) from a external Page.
Not just a IFRAME include!

So i need a Shortcode which starts a external (i think) php script. This exernal script receives the Page an parses the content (e.g. curl or simplehtmldom PHP Modul).

I need some hint to understand the possibilty to start a external script and gets the output of the script into the shourcode "return".

Live-example:
How can i extract the "DIV id="groupTableDiv" from
http://www.btv.de/BTVToServe/abaxx-?$part=theLeague.content.theLeaguePublic&championship=Mittelfranken%2015&tab=1&l1=2&l2=1&l3=3&l4=4&theLeaguePage=groupPage&group=007

and include the content of the DIV id="groupTableDiv" into some Page with a Shortcode?

Many thanks.

Regards,
Thomas