You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

GREY Google-sitemap module . GREY

Introduction

Migrate the sitemap module in order to support Magnolia 4.5.

Goal

  • Create a standard module with configuration, templates and services.
  • Replace JSP by FTL's
  • Better configuration
  • Add Specialized Sitemaps (Specialized Sitemaps) ?
    • Mobiles
    • News
    • Video
    • Geo
    • Code Search
  • Add additional informations (linked to a page) to the SiteMaps ?
    • Images
    • Video
  • Add Junit tests.
  • Add an AdminCentral Tools menu to access the Edit page ?

Global Requirements

Generate XML page(s) containing site informations following the siteMap protocol.

Have a global Dialog that allows to

  • Define the sites to include in the output file
  • Define Mobile variation to incude to the output file
  • Define the output properties
    • One file per site
    • One single file

Have a configuration page (Dialog) that gives us the ability to define per output file

  • File Name
  • File Location
  • Include Images references

Have a configuration page (Dialog) that gives the abitiy to define per page the:

  • Change frequence
  • Priority
  • Visibility of the site page and children in the SiteMap xml.

Google SiteMap requirements.

Requirements

Points not yet covered (should we)?

  • A Sitemap file can contain no more than 50,000 URLs and must be no larger than 50MB when uncompressed. If your Sitemap is larger than this, break it into several smaller Sitemaps. These limits help ensure that your web server is not overloaded by serving large files to Google.
  • If you have more than one Sitemap, you can list them in a Sitemap index file and then submit the Sitemap index file to Google. You don't need to submit each Sitemap file individually.
  • As well as basic URL information, Sitemaps can contain detailed information about specific types of content on your site, including video, images, mobile, News, and software source code

Magnolia SiteMap requirements.

Points not yet covered (should we)?

  • Site variations:
  • Multi domains:
    'No. Please list only one version of a URL in your Sitemaps. Including multiple versions of URLs may result in incomplete crawling of your site'...
  • Uses of an external java library (Apache License 2.0)

Google SiteMap Configuration

We should be able to configure:

  • Sites ans subSites to include in the SiteMap Url
    • Define if we add additional informations for Images Videos related to a page.
  • Mobile Sites and subSites to include in the SiteMap Mobile
  • Output Files Informations
    • File Name
    • Location
    • One file per Sites or a global File

Solutions

  • Create a configuration singleton used by the model and service (configure site to be displayed, date format, ...).
  • Create a Service responsible to perform the nodes search and convert these nodes to beans used for the rendering.
  • Create a new SiteMapModel  that uses the services and configuration singleton.
  • Create FTL's for rendering.

References

Google SiteMap About

Google SiteMap Errors

Best Practices

  • No labels