$event['url'] = $modx->makeUrl($eventsPage).urlencode($event['name']).'/'.$event['id'];
This question has been answered by lancipoos. See the first response.
4. Create a resource for the events calendar (or add it to your template(s))
5. Create a resource for the upcoming events list (see template example below)
6. Create a resource below that for a single event (see template example below)
Summary resource URL: http://domain.com/events/with the detail resource then using
Detail resource URL: http://domain.com/events/Some+Event/2
$modx->sendForward($eventPage);
if ($modx->event->name == 'OnPageNotFound' && preg_match('/'.$jsonURI.'\?.*$/', $_SERVER['REQUEST_URI']))
elseif ($modx->event->name == 'OnPageNotFound' && preg_match('/'.$eventsPageRegex.'\/.*\/[0-9]+$/', $_SERVER['REQUEST_URI']))
PHP warning: preg_match(): Unknown modifier 'c'
else { $modx->sendForward($eventPage); }
Just not sure what format EventsX is expecting $modx->makeUrl($eventsPage) to be in in order to append '/'.$event['id'];
public_html/core/cache/includes/elements/modplugin/18.include.cache.php : 62) PHP warning: preg_match(): Unknown modifier 'c'
elseif ($modx->event->name == 'OnPageNotFound' && preg_match('/'.$eventsPageRegex.'\/.*\/[0-9]+$/', $_SERVER['REQUEST_URI']))
"GET /calendar-test-page/calendarupcomingevents/TestEvent/1 HTTP/1.1" 404 24521
PHP 5.5.9-1ubuntu4.22
$modx->log(modX::LOG_LEVEL_ERROR, 'EVENTS PAGE REGEX: ' . $eventsPageRegex);
PHP warning: preg_match(): Unknown modifier 'c'like I posted before.
elseif ($modx->event->name == 'OnPageNotFound' && preg_match('/'.$eventsPageRegex.'\/.*\/[0-9]+$/', $_SERVER['REQUEST_URI']))
elseif ($modx->event->name == 'OnPageNotFound' && preg_match('#'.$eventsPageRegex.'\/.*\/[0-9]+$#', $_SERVER['REQUEST_URI']))
if(preg_match('/'.$eventsPageRegex.'\/.*\/[0-9]+$/', $_SERVER['REQUEST_URI']))
if(preg_match('#'.$eventsPageRegex.'\/.*\/[0-9]+$#', $_SERVER['REQUEST_URI']))