Quote from: arphaus at Oct 23, 2006, 04:21 PM
the repository makes no sense to me - it doesn’t say anything about what to do in terms of a step-by-step process. i’m not a programmer, by any definition.
You don’t need to be a programmer to use it. It is just a snippet which means you need to call it from within a document to make it generate any output. However, you’re right there is no step-by-step procedure. Thus I plan to make one and publish it in MODx wiki once I get some spare time.
Anyway here is the shortest possible how-to:
1) Create a document in the root level of the document tree, use a blank template, set the content type to ’txt/xml’ and alias to ’sitemap.xml’.
2) In the document content field call the snippet:
[[sitemap? &format=`sp`]]
3) Log in to your Google sitemaps account and register your new sitemap file.
You can examine it at
http://yourdomain.com/sitemap.xml. If you want to get a readable output, you have to get an XSL stylesheet as described in the repository entry. Once you downloaded it, simply duplicate your ’sitemap.xml’ and paste the contents of the XSL into it. Then change the document alias to ’sitemap.xsl’ and save. Now, you should be able to see it better
The sitemap you created includes
each and every document from your site. This is not necessarily what you would want. To exclude documents from it follow instructions from the repository entry.
I hope this will help you to get started.