This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ChadStrat
ChadStrat

Has anyone conjured up a reliable way to handle sitemap.xml inclusive of dynamic plugin data like ProBlog / Blog / or ProEvents?
ChadStrat

that0n3guy
rob
rob

Hello, do you you have some instructions for me, how to integrate this laravel package into october?

that0n3guy
that0n3guy

My idea, create a polymorphic relation w/ the following fields:

  • inclusion (drop down field with: default (set in settings, either included/excluded), included, excluded
  • priority: a dropdown with 0.0 (lowest priority), 0.1, 0.2... up to 1.0 (highest priority)
  • update interval: a dropdown with daily, weekly, monthly, yearly

Since its polymorphic, it can relate to any model. You then can set a blog/problog/events inclusion and priority. I'm not sure how to do non-database content (like pages/cms/static pages/etc..)... but similar idea probably.

Then you can query all the references and use the sitemap package above to add the urls.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.