Viewing sitemap while logged on as manager does not work
<?php // PHP tags added only to swith on the code higlighting '<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>'."\n". ?>
Adding the [*content*] to my own "empty" template did it for CSS files, thanks for that tip! I didn’t realise I had to have [*content*] there, I first simply made a (totally) empty template, then made a CSS file based on that.
With the new "empty" template I can at least get rid of the sitemap listing for all the CSS files and the Javascript file - remaining now is only the sitemap.xml and sitemap.xsl.
Yes that’s right. The XML and the XSL file didn’t want to be based on my "empty" template, I could only make them work (together) if based on the (blank) template. And since I can’t put in the TV for sitemap exclusion in the (blank) template - they do show up.
It’s possible that the sitemap.xml work if based on a custom "empty" template - but I could not get the XSL file to work so since I can’t check easily if the sitemap.xml is correct.
Good work you put in there - I’ve been updating all my other sitemaps manually but this is so much better!
Quote from: arphaus at Oct 23, 2006, 04:21 PMYou 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.
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.
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.
Today, we are excited to announce that Google, Microsoft and Yahoo! are coming together in support of the SiteMaps protocol. The goal of this effort is to improve search results for customers around the world. This protocol enables site owners everywhere to tell search engines about the content on their site instead of having to rely solely on crawl algorithms to find it.