You'll need to include a query that includes the content of Umbraco.TypedMedia and then combine it with your page query above.
I take it you are aware that by promoting the indexing of your sites PDFs in Google that it will mean that some people don't visit your site at all and just go direct to the PDFs in question?
Include PDFs in Sitemap
We are dynamically creating our sitemap, but it doesn't include PDFs. How can we include PDFs from the media directory in the sitemap?
Hi Lisa
Can you show how do you render sitemap? It should be easy change to the code :)
THanks,
Oleksandr
We have a sitemap document type and this is the code in the sitemap.cshtml file:
Hope that helps.
You'll need to include a query that includes the content of Umbraco.TypedMedia and then combine it with your page query above.
I take it you are aware that by promoting the indexing of your sites PDFs in Google that it will mean that some people don't visit your site at all and just go direct to the PDFs in question?
Hi Lisa
You need to traverse through media items also as Paul told.
Can you show backend structure of pdfs that you want to add to sitemap?
Alex
Thanks for the responses. This is no longer an active project so I'm not doing anything further.
is working on a reply...