To change the SEO URL Pattern of the URLs generated by the SiteMapGenerate Scheduler
SiteMapGenerate Scheduler ->
SiteMapGenerateCmdImpl -> performExecute ->
SiteMapGenerate Scheduler ->
SiteMapGenerateCmdImpl -> performExecute ->
createSiteMapForStore() ->
createRawSitemapForSEO() ->
createSiteMapForCatalog() ->
CatalogTreeSiteMapGenerateCmd -> CatalogTreeSiteMapGenerateCmdImpl
CatalogTreeSiteMapGenerateCmdImpl has methods getSEOURLPatternNameForCatalogEntry(), getSEOURLPatternNameForCategory(). These have SEOURLPattern hardcoded.
For CatalogEntry, it is "ProductURLWithCategory" pattern.
To change this you need to create a new class and extend CatalogTreeSiteMapGenerateCmdImpl and overwrite the needed methods.
Don't forget to change the classname in the CMDREG table for CatalogTreeSiteMapGenerateCmd interface.
No comments:
Post a Comment