Googlesitemaps module

This chapter describes

1 Introduction

Googlesitemaps Module is the designed to build a Googlesitemap for a defined content of the CMS. It can also be used to create variable export Files.

It takes objects from CMS and displays them in an overview.

2 Structure

Googlesitemaps module is placed in folder <portal>/custom/modules/googlesitemaps.

I consists of:

  • component: Googlesitemaps
  • widget: GooglesitemapsWidget

3 Googlesitemaps widgets

There is 1 widget:

  • GooglesitemapsWidget – shows content overview based on given parameters.

3.1 GooglesitemapsWidget

Invokes:


    <?php
        $this->widget('googlesitemaps.widgets.GooglesitemapsWidget',array(
          'rootfolderId'=>'10002.56',
          'hostParam' => 'http://www.gentics.com',
          'contentTypes'=>array('10007'),
          'hideParam'=>'navhidden',
          'containerParam'=>'sitemap',
          'containerParamValue'=>'1',
          'cacheTime'=>'60',
          'gccRequestParams' => 'languagecode,name,node_id',
          'sorting' => 'createtimestamp:desc',
          'outputFormatValue' => 'formatx'
        ));
    ?>

Parameters:

  • rootfolderId (string) – CMS folder ID ‘10002.x’ . Entrypoint for the Sitemap (usualy a Node Folder);
  • hostParam (string) – HTML string that will be used to build absolute Urls (usualy defined in Node properties);
  • contentTypes (array) – Defines wich Content Types will be fetched in the Overview (eg (‘10007’,‘10008’) for pages and files);
  • hideParam (string) – Name of the Tagmap entry that can be set to “1” to have content not fetched in this overview;
  • containerParam (string) – Name of the Tagmap entry that can be set to “containerParamValue” to have only content set with this value fetched in this overview;
  • containerParamValue (string) – Value that gets checked against the Tagmap entry of containerParam to only fetch content set with this value in this overview;
  • containerParamValue (string) – Value that gets checked against the Tagmap entry of containerParam to only fetch content set with this value in this overview;
  • cacheTime (string) – Change caching setting (default is 24 Hours);
  • gccRequestParams (string) – GCC request params. Comma separated;
  • sorting (string) – expression for sorting;
  • outputFormatValue – If you need to have different outputformats for different widgetcalls you can set a Parameter to check for in the view