Entering php to connect to external data
Permalink
I need to enter some code (below) to pull in data from an external website.
I've created a new blank page where I want the data to appear, but where do I place the code to make this happen?
Thanks
p
I've created a new blank page where I want the data to appear, but where do I place the code to make this happen?
Thanks
p
// ID for the Tour we want the details for $tour = 152; // Channel (Operator) ID of the Tour $channel = 6; // Query the TourCMS API $result = $tourcms->show_tour($tour, $channel); // Go straight to the tour node $tour = $result->tour; // Print out the tour name and lead in price print $tour->tour_name.' - from only '.$tour->from_price_display;
I believe you have to include this library.
http://www.tourcms.com/support/api/mp/code/library_php.php...
This link might help you with including it.
https://www.concrete5.org/community/forums/5-7-discussion/third-part...
http://www.tourcms.com/support/api/mp/code/library_php.php...
This link might help you with including it.
https://www.concrete5.org/community/forums/5-7-discussion/third-part...
Thanks.
Yes, included the library and installed an add on that allowed me to enter php directly into a block, and then entered the required code into the block. After a bit of trial and error, I managed to bring in data from the cms website
Just got to work out how to pass search terms and selected fields to the code that will will filter data as required...hopefully should be OK with that
Yes, included the library and installed an add on that allowed me to enter php directly into a block, and then entered the required code into the block. After a bit of trial and error, I managed to bring in data from the cms website
Just got to work out how to pass search terms and selected fields to the code that will will filter data as required...hopefully should be OK with that
http://www.tourcms.com/support/api/mp/tour_show.php...