Three words: Jamroom IS Awesome!!
We start with the includes.php and make sure that there is a listener registered and coded properly:
function myCustomModule_init(){
jrCore_register_event_listener('jrSitemap', 'sitemap_site_pages', 'myCustomModule_sitemap_site_pages_listener')
return true;
}
function myCustomModule_sitemap_site_pages_listener($_data, $_user, $_conf, $_args, $event)
{
$url = jrCore_get_module_url('myCustomModule');
$_data[] = "{$_conf['jrCore_base_url']}/{$url}/my-custom-module-page";
return $_data;
}
Now, because we all want to meet the strictest SEO standards, make sure that your custom page in your module has hyphens in the URL (and NOT underscores) add this page view function to your index.php like this:
function view_myCustomModule_default($_post, $_user, $_conf)
{
switch ($_post['option']) {
case'my-custom-module-page':
return jrCore_parse_template('my-custom-module-page.tpl', $_rep, 'myCustomModule');
break;
}
}
And "Voila!" you now have a custom page, SEO ready and entered in your sitemap!
--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3