PHP

The below PHP code is supposed to display the details of a calendar event on another page (it’s not working yet). But the bigger issue is that all the html below the code block is not rendering while everything above it is. So only half the page structure (the top half) is being rendered. Not sure why since the PHP appears fine to my eyes.

<?php
perch_events_custom(array(
'_id'=>perch_get('id'),
'template'=>'events/listing/event-detail.html'
));
?>

Todd
http://xiiro.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Does the page ‘event-detail.html’ exist at that relative path?

David


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Should the templates not be at /perch/templates/events

D


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yep, sure does.

Does the page ‘event-detail.html’ exist at that relative path?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t know that it matters where this particular template is located as long as the path is correct. But I’ll move it anyway and see what happens.

Should the templates not be at /perch/templates/events


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

In case it helps anyone else …

The original code is indeed correct for Perch v2. However, I’m using v1.8.4 so a small part of the syntax needed tweaking.

'_id'=>perch_get('id'),

to

'_id'=>$_GET['id'],

Works a treat now. Thanks Dave.

Todd

<?php
perch_events_custom(array(
'_id'=>perch_get('id'),
'template'=>'events/listing/event-detail.html'
));
?>

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options