Member
Member
ctdlg   08-02-2024, 16:28
#1

Hello,

Is it possible to remove dynamic albums and images entries from

  • sitemap-zenphoto-albums xml files
    and
  • sitemap-zenphoto-images xml files
    (generated by the Zenphoto sitemap-extended plugin) ?

Thanks in advance !

Note : I did search inside the sitemap-extended files plugin, without finding a good solution ...

Administrator
Administrator
acrylian   08-02-2024, 16:52
#2

Hm, actually both are excluded already. The method getAlbumList() has if (!$album->isDynamic()) {…} and getImages() if ($imageobj->isPublic() && !$albumobj->isDynamic()) {…} to do so.

Edit: I just tired locally and indeed this seems not to work properly. I also do get dynamic albums listed in 1.6.2a… Will take a look! I think I even will make this an option as there may be use cases you want at least dynamic albums listed. Even if images in dynamic albums canonically point to the original.

Administrator
Administrator
acrylian   10-02-2024, 16:17
#3

There was indeed a bug. It should now be working in 1.6.2a. Also there is now an option to allow dynamic albums being included. Images are and were never included actually.

Also of note, in 1.6.2a the html_meta_tags plugin now has an option so images in dynamic albums point to their real album instead. I thought indeed it did already but didn't.

Member
Member
ctdlg   10-02-2024, 18:41
#4

Thank you very much acrylian.
It does work !

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