Member
Member
vincent3569   2017-10-25, 09:26
#1

not sure so I prefer discuss on forum before create a ticket.

with sitemap-extended, I have this xml file /cache_html/sitemap/sitemap-zenphoto-index.xml.
In this file I can see the following code:



        http://www.vincentbourganel.fr
        2017-10-17T09:46:16Z
        weekly
        0.9


        http://www.vincentbourganel.fr/page/2
        2017-10-17T09:46:16Z
        weekly
        0.9


        http://www.vincentbourganel.fr/page/3
        2017-10-17T09:46:16Z
        weekly
        0.9

Member
Member
vincent3569   2017-10-25, 09:26
#2

without rewrite token on gallery (this is my case on my prod site), I should have something like following:



        http://www.vincentbourganel.fr/page/gallery/
        2017-10-17T09:46:16Z
        weekly
        0.9


        http://www.vincentbourganel.fr/page/gallery/2/
        2017-10-17T09:46:16Z
        weekly
        0.9


        http://www.vincentbourganel.fr/page/gallery/3/
        2017-10-17T09:46:16Z
        weekly
        0.9

and of course, it should take into account the rewrited token for gallery page.

Administrator
Administrator
acrylian   2017-10-25, 09:34
#3

Since you have to manually set the page you want to use as the gallery index you can just enter the rewritten page name on the option.

It does not support the rewrite token because you can use any other page (you need to make sure naturally that it makes sense ;-)) as well but those will not have any gallery token support.

Member
Member
vincent3569   2017-10-25, 09:44
#4

I did a mistake in my previous post. the file should be like following



        http://www.vincentbourganel.fr/
        2017-10-17T09:46:16Z
        weekly
        0.9


        http://www.vincentbourganel.fr/page/gallery/
        2017-10-17T09:46:16Z
        weekly
        0.9


        http://www.vincentbourganel.fr/page/gallery/2/
        2017-10-17T09:46:16Z
        weekly
        0.9

    [...]

as we can have separted pages for index et gallery pages.

Member
Member
vincent3569   2017-10-25, 09:44
#5

Since you have to manually set the page you want to use as the gallery index you can just enter the rewritten page name on the option.

Sorry, I don't understand. According to you, where I have to enter the rewritten page name?
There is non option like that in sitemap-extended plugin.

Administrator
Administrator
acrylian   2017-10-25, 09:47
#6

You have to do it in two places: The actual rewrite token on the rewriteToken plugin options and the option of the sitemap plugin so it know which is the gallery page to use.

So if youe rewrite token is "galerie" instead of actual page name "gallery" enter it in both options for now.

This naturally ony works if using modrewrite urls and it will be alwas /page/. But seriously who nowadays would use non modrewrite links…

I might take a look later to support the default gallery index "gallery" internally.

Member
Member
vincent3569   2017-10-25, 10:00
#7

OK.
Btw, it will be more consitant if sitemap-extended uses the theme option custom_index_page ('gallery' in my case).
so we don't have to do nothing in sitemap-extended options.

Administrator
Administrator
acrylian   2017-10-25, 10:05
#8

Yes, might be that the plugin is older than this option, don't remember. I will put it on my list.

Member
Member
vincent3569   2017-10-25, 10:08
#9

I have a test by adding 'gallery' in Gallery index page option of sitemap-extended, but nothing append in /cache_html/sitemap/sitemap-zenphoto-index.xml: the xml stays as the code above and I don't have any 'gallery' anywhere in sitemap xml files.

Member
Member
vincent3569   2017-10-25, 10:10
#10

to finish, in the same way, the paginated items (news, cattegories, gallery and albums) are like that:

news/1
category/[category_name]/1
page/2
[album_name]/page/1

as rewrited like are with a / at the end

news/1/
category/[category_name]/1/
gallery/page/2/
[album_name]/page/1/

I don't know if it is correct or not.

Administrator
Administrator
acrylian   2017-10-25, 10:22
#11

Yes, they should. Actually both will work and should be redirected by htaccess.

Administrator
Administrator
acrylian   2017-10-25, 12:09
#12

Fix is up, please try as I also did some internal restucturing (does not change functionality, just for better internal organization).

Member
Member
vincent3569   2017-10-25, 15:01
#13

It seems to be fixed.
as usual, thanks :-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.