Sitemap behavior

bic Member, Translator
Hi all, I've just updated to 1.4.2.3.
First of all I'm happy to say that I've noticed an improvement of performance and server response, that's very good.

I've used the sitemap-extended plug-in to generate the sitemaps.
It worked properly and very fast but for sitemap-zenphoto-index.xml and sitemap-zenpage-newsindex.xml.

The first returns wrong links pointing to the home page, where I use a static page. The links are like this:
mydomine/en_US/page/5
while they should be something like this:
mydomine/en_US/page/gallery/5
Furthermore I have 5 pages listed, while they should be just 2. The 3 more are composed of unpublished albums.
The same happens with the news index: 14 pages listed vs 3 actually available for non admin visitors...

EDIT
oops, I have to say that I'm using a custom theme, does anybody can reproduce the issue with an official theme?

Comments

  • acrylian Administrator, Developer
    The sitemap plugin only uses the standard options set on the backend. If your theme set directly different images per page options or such it is not able to take care of those naturally.

    If you like to help us please try a standard theme, too.

    `mydomine/en_US/page/5` however sounds indeed wrong as that would imply a custom theme page named "5" exists. But those are not even taken care of by the sitemap as they are not managed content at all.
  • bic Member, Translator
    About your first point, I'll make a test (asap) with a standard theme to give you a feedback. Anyway I don't remember if I have specified a custom image per page (or news per page) number in my theme. The difference, in the number of pages listed, is the same I get between an admin and a regolar user, so may be the plugin is counting pages with admin privileges (only for the 2 sitemaps I listed above). I have not the same issue for album and image sitemaps.

    About your second point, the plugin is using the `root/` path to list gallery pages, while it should use the `root/gallery/` path. The number `5` is an example. I have 5 gallery pages when logged in, and just 2 when not logged in.
  • acrylian Administrator, Developer
    Btw, a correction on my end:

    `domain.com/en_US/page/5` is a valid link to the 5th toplevel page in the default theme.
    If you use a "gallery" page `domain.com/en_US/page/gallery/5` would indeed be the right ones to use. So this seems to be a bug indeed.

    If you really get unpublished items listed that is a bug as well. So please open a ticket about this.
  • acrylian Administrator, Developer
    domain.com/en_US/page/5 is a valid link to the 5th toplevel page in the default theme.
    If you use a "gallery" page domain.com/en_US/page/gallery/5 would indeed be the right ones to use. So this seems to be a bug indeed.


    If you don't have the index page setup for toplevel albums at all. I don't think it is possible to check this automatically so probably we will need to make this an manual option.

    Regarding too much toplevel pages listed I can reproduce this with the trunk nightly and the developement nightly.

    So please open the ticket.
  • acrylian Administrator, Developer
    FYI, I did open the ticket myself.
  • bic Member, Translator
    I'm going to a meeting right now, I'll open the ticket this evening.
    So the points for the ticket are 3:
    1) Too many pages (ie not published albums) in gallery top level
    2) Add an option for people with a custom page for home page
    3) Too many pages in news index. This is probably the same bug as the first point, because I have combinews enabled in zenpage, so the error is likely generated by the not published albums.

    EDIT
    Ah, I didn't get your last message. The ticket is already opened. Thanks!
  • acrylian Administrator, Developer
    This should now be fixed. I would appreciate some testing.
Sign In or Register to comment.