Quote from: delorean88 at Sep 27, 2010, 10:56 AM
What am I missing?
It works fine when I leave out the inner item template (lists the events using the template in event.list.event.html), when I add the inner item template, all the events just disappear, no trace of any of the template code, all I get is the empty container ul.
Can someone tell me what I am doing wrong?
Thank you!
-------------------------------------------------------
Other issue:
Is there any way to just stop the snippet from triggering the javascript to be added to the header? I still need the AjaxPageId to specify the event page as far as I can tell...but the JS/AJAX is not working for me and I can’t figure it out, and it’s just giving me these errors:
MOOdalBox.init.bind is not a function Line 7
Class is not defined Line 1
window.addEvent is not a function Line 59
Thanks again... 
Ah, thanks for the report it’s a bug in the code where an extra space was introduced, if you do a quick Find for any of these lines:
//-- check for event list template over-ride chunk
if(!empty($param['mxcTplEventListItemWrap'])){
$events .= $modx->parseChunk($param['mxcTplEventListItemWrap '], $ar_eventDetail, '[+', '+]');
Note the extra space after the last line, starting with "$events" where the first occurance of "mxcTplEventListItemWrap" has and extra space at the end; simply remove that space until I get a new version loaded and that will solve your problem.
Corrected Version:
//-- check for event list template over-ride chunk
if(!empty($param['mxcTplEventListItemWrap'])){
$events .= $modx->parseChunk($param['mxcTplEventListItemWrap'], $ar_eventDetail, '[+', '+]');
let me know if you still have issues with it.
Now your second issue with JS you should already have MooTools being loaded to the page to make this work if it’s not already, which is the most common cause of this error. If you can send me your URL in a private message I can take a closer look.
Cheers