ZenphotoCMS Forum
Sitemap call with ZP1.4 - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Sitemap call with ZP1.4 (/thread-8095.html)



Sitemap call with ZP1.4 - frankm - 2011-01-13

hi,

sitemap is not called from a root file anymore. it is now called like mydomain.com/[zenfolder]/index.php?sitemap. there is a line in the htaccess file that allows the use of the old call mydomain.com/[zenfolder]/sitemap.php.

anyway in the index.php file i see no where a case if (isset($_GET['sitemap'])) to actually run the sitemap.

i actually tried to run it from my latest installation of zenphoto and no xml file was created in the cache_html/sitemap directory.

is there another way to call the sitemap ?

frank




Sitemap call with ZP1.4 - sbillard - 2011-01-13

It's [i]Magic[/i] Just use the URL /index.php?sitemap and it will run (always presuming that the plugin is enabled.) Be careful, though, like all our caching schemes, noting is cached when an admin is visiting the site.

As to how the magic works--the plugin checks that query parameter when it is loaded. Nothing needed in index.php.




Sitemap call with ZP1.4 - frankm - 2011-01-13

i'm learning new stuff every day with you. i'll have to check that magic out !! and in fact i forgot that there is no caching when we are logged in.