$_misc['TVs'] = array('DateDescription','EventImage');$_mist['doc_fields'] = "id,pagetitle,description,introtext,content";
function getTVs($id)
{
$tvs = $this->modx->getTemplateVarOutput($this->misc['TVs'],$docid=$id);
return ($tvs);
}
// Get template vars
$tvs = $this->getTVs($ea['id']);
// Merge tvs
$eventData = array_merge($eventData,$tvs);
$eventList .= $this->templify('listItem',$eventData);
$tvs = $this->getTVs($eeid);
// Merge tvs
$templateData = array_merge($templateData,$tvs);
// Send event data to chunk template
$output .= $this->templify('eventDetails',$templateData);
try fix the easyEventsAjax.js, line 7:
xhr0: window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0"),
to be:
var xhro = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0"),
missing : in after property id"
Quote from: goldsky at Feb 21, 2009, 02:39 PM
try fix the easyEventsAjax.js, line 7:
xhr0: window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0"),
to be:
var xhro = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0"),
I tried this, and the Next Month / Prev Month does page back and forth, but it isn’t ajaxing - in the javascript error log I get
at line 7 xrho.missing : in after property id"
So switching months doesn’t trigger the ajax, and selecting an event goes to the actual event page, and then the calendar can no longer display events because the snippet doesn’t run.
If I put line 7 back how it is in the download, xrho: and next/previous no longer works, but clicking event titles does use ajax to display the event.
Quote from: paulkoan at Mar 10, 2009, 04:44 PM
This might be to go backwards in development, but I want to go directly from a link in the event list to the full article. I don’t want the article content to show up in the AJAX field under the minicalendar.
Thanks for your answer, but I still want to have the rest of the AJAX functions. The only thing I want to have is the original eventlist under the calendar when I click on an eventlink, and not the content of the event document. The rest works perfect. See it here (in Norwegian).
I couldn’t get some of the Ajax stuff to work, and so just removed all of the javascript calls.
This will achieve what you want.