Join the Webstudio community

Updated 3 days ago

Dynamic Sitemap question

At a glance

The community member is setting up a sitemap for their website, which has three types of dynamic content in Hygraph: posts, post categories, and projects. The community members suggest creating multiple collections with their own resources, such as a posts collection, categories collection, and projects collection, to index all the content in the sitemap. This is confirmed as the correct approach by another community member.

I am setting up the sitemap (Watching Hygraph CMS video) for an almost finished site.
I have 3 types of dynamic content in Hygraph:


1 . posts
  1. post categories (each category has it's landing page) and url is example.com/category/business
3 . Projects (url: example.com/project/abcd

How do i go about creating a sitemap that indexes all these

Thanks
Attachment
image.png
Marked as solution
Create multiple collections with own resources
  • posts collection
  • categories collection
  • projects collection
View full solution
B
m
5 comments
Create multiple collections with own resources
  • posts collection
  • categories collection
  • projects collection
perfect , thanks
So duplicate that pre-defined collection, one for each item
And 3 resource / queries, one for each

Did i understand it correct ?
Thankyou so much
What could be the reason that static one isn't picking up any static pages from system resource sitemap sorry
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord