Hi guys,
Apologies if this is in the wrong place. I did try to search for what I am after first but didn’t manage to find anything.
I am beginning to work on converting a sitemap snippet so it will work with revolution (Snippet I am editing is
Sitemap 1.0.8 originally by Grad. )
I am working my way through it and am of course discovering lots of depreciated tags which have been used, for instance:
I am wondering if something like the following would suit:
$docList = $modx->getChildIDs($startid);
$docs = $modx->getDocuments($docList,'1','0','id,editedon,template,published,searchable,pagetitle,type','','menuindex','asc');
The source code in modx.class.php says that getDocuments is now depreciated (as of October last year) Is there a more appropriate way to fetch the necessary metadata required to generate a sitemap under revo - or is getDocuments() most suitable for now?
Regards,
Dave