Extending the XML Sitemap
Permalink
I'm running bbPress & WordPress in addition to C5 and needed to edit the GenerateSitemap class to add urls from both those systems to my sitemap.
In case anyone else is trying to do something similar, here's the file I used to do it.
Make sure you read the notes at the top of the file and setup your WordPress/bbPress settings accordingly.
I added 2 methods to the class. _addWordPressNodes and _addBbPressNodes. If you only want one or the other, remove the function and/or remove the call to the function around line 150-151 of this file.
If your permalink structure is different from mine, you'll likely have to edit the portion of the methods where the xml node is built.
I'm accessing the DB directly with this file because in a quick and dirty test I ran (http://www.rlmseo.com/forum/topic/direct-database-access-uses-97-less-memory) I saved a heck of a lot of memory this way. Just be warned, you'll probably have to edit this a bit to suit your permalink structure.
Add this file to your root /jobs directory.
In case anyone else is trying to do something similar, here's the file I used to do it.
Make sure you read the notes at the top of the file and setup your WordPress/bbPress settings accordingly.
I added 2 methods to the class. _addWordPressNodes and _addBbPressNodes. If you only want one or the other, remove the function and/or remove the call to the function around line 150-151 of this file.
If your permalink structure is different from mine, you'll likely have to edit the portion of the methods where the xml node is built.
I'm accessing the DB directly with this file because in a quick and dirty test I ran (http://www.rlmseo.com/forum/topic/direct-database-access-uses-97-less-memory) I saved a heck of a lot of memory this way. Just be warned, you'll probably have to edit this a bit to suit your permalink structure.
Add this file to your root /jobs directory.