mwesten / Plugin-Sitemap

Statamic v1 plugin that generates a sitemap of your site, using dynamic priority and changefreq. This Repo is archived: this is an old Statamic plugin and is unmaintained for a while.
https://maxwesten.nl/projects/statamic-addons/sitemap-plugin
16 stars 5 forks source link

Priority setting ignored #5

Closed raddevon closed 5 months ago

raddevon commented 10 years ago

It seems the plugin is ignoring my priority setting. I have set the priority for my portfolio page to 0.9, but the sitemap still shows it as the default 0.5. Here's the YAML front matter for that page which is /_content/1.portfolio/page.md:


---
title: Portfolio
_template: portfolio
_default_folder_template: project
priority: 0.9

---

Here's the output for that page in the sitemap:

<url>
  <loc>http://raddevon.com/portfolio</loc>
  <lastmod>2013-10-31</lastmod>
  <changefreq>yearly</changefreq>
  <priority>0.5</priority>
</url>
mwesten commented 10 years ago

Hi Devon,

I'm not sure what version of Statamic you are running, but the last time I was able to work on this code, I was working on v1.5.

v1.6 has cacheing added. It caches the YAML front-matter. It might be a cacheing issue. You could try to clear the cache by removing the files content.php and last.php from the /cache/_app/content/ folder as per instructions from the documentation.

Please let me know it it works.

raddevon commented 10 years ago

Thank you, Max. I'm running the latest version (1.6.4). I tried your suggestion, but the problem persists. My portfolio page is still showing the default priority of 0.5.

mwesten commented 10 years ago

I haven't been looking into the latest versions of Statamic with my plugins, due to cognitive problems after a brain infection. I can't really help you at this point. Sorry....

raddevon commented 10 years ago

Oh, I'm sorry to hear that. Well, thank you anyway for being friendly and helpful.

mwesten commented 5 months ago

Closing this (unresolved)issue. Statamic v1 is unsupported and this repo will be archived.