Ticket #215 (testing enhancement)
Sitemap for Plogger galleries
| Reported by: | sidtheduck | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | General | Version: | SVN |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Per pandianbe's request, a sitemap for Plogger would be a good idea and should be somewhat easy to implement. Looking at Google and/or Yahoo sitemaps, this should be able to generate HTML or XML outputs for spidering.
Attachments
Change History
Changed 3 years ago by pandianbe
-
attachment
plogger-sitemap-partial-code.php
added
comment:3 Changed 2 years ago by sidtheduck
- Status changed from new to testing
I just attached my attempt at cleaning up the code for generating both an HTML and XML sitemap for Plogger (named plog-sitemap.php). To use the file, save plog-sitemap.php to the main Plogger folder (same as plog-config.php). For HTML output, navigate to plog-sitemap.php. For XML, navigate to plog-sitemap.php?xml
I'm hoping to work this into a plugin for Plogger so the code could be inserted via a function into a separate file location (i.e. mysite.com/sitemap.php). I'll post additional code once I have had some time to work on it.
comment:4 Changed 2 years ago by sidtheduck
Also to note, if using the HTML output, it pulls in the head, header, and footer from the current theme file, so the HTML sitemap should look the same as your theme files. If you want to edit CSS, do it from the current theme's gallery.css.
comment:5 Changed 2 years ago by pandianbe
Hi Sidtheduck and Kim,
The Priority should be different in XML Sitemap.Is it possible to change the priority like below:
1.Main URL - 1.0 2.Sub URL - 0.8 3.Sub-Sub URL - 0.5
Google will give the error message or will not accept sitemap.
Regards, Pandian

Plogger XML Sitemap Gen Partial or Idea to Code