locked out!
PermalinkThe php contained an error which was displayed as the page refreshed.
But now I can't get back into page edit mode. All I get is the red error bar.
There must be a better way to insert page-specific custom php into specific areas of the page....
Does anyone have any words of wisdom?
Thanks
?
Referring back to an older version is a good solution for now.
Thanks
or forget about creating a special block, but code it into your theme and use page attributes for the differences...
<?php include_once("some_config.php"); $tc = new TourCMS($marketplace_account_id, $api_private_key, 'simplexml'); $tour = tourcode; $result = $tc->show_tour($tour, $channel); $tour = $result->tour;?> <h1><?php echo $tour->tour_name.'';?></h1> <?php $image = $tour->images->image->url.''; echo "<img src='".$image."'/><br />"; echo $tour->tour_name.' - from only '.$tour->from_price_display; echo $tour->exp.''; echo $tour->shortdesc.''; echo $tour->inc.''; echo $tour->ex.'';
create a 'tour' attribute for your pages, then in your code:
$c = getCurrentPage();
$tour = $c->getAttribute('tour');
or...create a block for it :D
if you still cant view your page, revert it back to an older version