php-sitemap
php-sitemap copied to clipboard
Standalone sitemap builder 100% standards compliant.
Fixes #45 Updates VideoItemValidator:: validateTitle() to return the video title instead of true when the video title is the correct length, and false when it is too long or empty.
The file **_sitemap.index.xml_** can not be overwritten. It shows me the following message `Cannot create sitemap. File '/var/www/html/sitemap.index.xml' already exists.` I have to put this code before new Sitemap( )......
return self::validateString($title) && \strlen($title) < 97; self::validateString($title) returns the value as expected, but the whole line will return a boolean which gives a wrong value in the generated sitemap.
**accommulatedFileSize** need to be recalculated after opening new file inside createAdditionalSitemapFile. Overriding method **createAdditionalSitemapFile** inside **ImageSitemap.php** currently does not recalculate accommulatedFileSize, this cause new file produced on every call to...