Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Umbraco version 7.1.4, Seo Checker version 1.5.2Situation: setting "Enable XmlSitemap" property in SEO confuguration generates an empty xml. What can be wrong here?
Propably the exclude in sitemap option is checked on the root document type node and otherwise check if the httphandler is configured in web.config.
Hope this helps,
The exclude in sitemap option is clear and http handler is configured. However, at this project we are using custom controller/model implementation ... so we don't create umbraco templates in umbraco admin (Settings->Templates) but rather use document type alias to map to the appropriate template under mvc website. So I made an experiment and defined a template via umbraco admin ... and that content item appeared in the sitemap :) Any ideas how we can make it work for our design?
Hmm Good question. The reason the template check exists is because in other situations that will result in an empty page. But in your situation it needs to look a bit further. This won't be an easy 5 minutes fix but I will look what I can do for a next release to support this scenario. What you can do as a workaround maybe is to create a dummy template for now and assign that to the doctypes you use for route hijacking?
No luck ... as soon as I specify a default template explicitly umbraco starts using it paying no attention to our custom model and even if to uncheck this template from "Allowed templates" the template is still used ... clearing cache, temporary internet files, etc. has no effect and if then to try to delete the template the following exception is thrown:
Only deleting the document types which the template was assigned helps... well, but this is another bug related to umbraco )). Looks like we will have to implement our own site map generation handler unless the behaviour is fixed in SEO Checker.
Sorry you ran into issues using the template. I've just seen that it is possible to read the route table. I'm curious how that looks on your end. Would it be possible to contact me via email@example.com then we can go back and forth on this one to support Route Hijacking as well.
Route hijacking shouldn't be the problem. We have project that uses route hijacking and the site map works just fine.
Did you assign templates there? That is the issue your colleague is having now.
Yep... al my doctypes have templates
I have implemented sitemap generator as a surface controller which accepts a language parameter. For undefined or english language it outputs english nodes, for other language - only those belonging to that very language. In SEO Checker -> settings -> domain settings I have 2 nodes: these are home pages for different locales (english and dutch), see mapping below:
For each domain robots.txt file I specified the Sitemap path:
Yes you can do both. The xml sitemap should be rendered based on rootnode out of the box, but since you are using your own controller you can modify the robots.txt settings. Right click on the rootnode and then select edit robots.txt file should help you.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted