Todd1
(Todd)
April 6, 2013, 7:36pm
1
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
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
Todd1
(Todd)
April 6, 2013, 10:41pm
4
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
Todd1
(Todd)
April 6, 2013, 10:42pm
5
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
Todd1
(Todd)
April 7, 2013, 3:22pm
6
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
http://xiiro.com
<?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