Tuesday 22 April 2008 11:00:46 pm
Hi @ all, after i tried most already existing eZ Publish extensions, I created a new project called GoogleSitemaps on projeczs.ez.no http://projects.ez.no/all2egooglesitemaps I'd like to invite you to join this project. This is currently implemented as an eZ publish 4.0 based on PHP5 cronjob which generates an XML file and saves it to a given location. This is also usefull wenn creating larger sitemaps, so your're able to define a specific time, when the sitemap is generated.
It's performance is also quite good, because it doesn't use any modules like layout/set/... The XML is generated directly with PHP5 DOMDocument as an UTF-8 XML document
<urlset>
<url>
<loc>http://www.all2e.com/loesungen/ez_publish</loc>
<lastmod>2008-04-12T14:39:19+02:00</lastmod>
</url>
<urlset>
Current parameters are:
[all2eGoogleSitemapSettings]
#Define Subtree to create Sitempa from
SitemapRootNodeID=2
#Define the XML file
Filename=sitemap.xml
#related to the eZ Publish root directory
Path=
[Classes]
#include or exclude objects of classes listed in ClassFilterArray
ClassFilterType=exclude
#setting array to include/exclude classes in sitemap
ClassFilterArray[]
#ClassFilterArray[]=folder
#ClassFilterArray[]=article
#ClassFilterArray[]=image
#ClassFilterArray[]=forum
#ClassFilterArray[]=...
The optional parameters changefreq and priority are not implemented yet, we might discuss about how to implement this.
Mit freundlichen Grüßen
Best regards
Norman Leutner
____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|