Information sur les auteurs & la licence

Aide pour sesitemap version 2.0

Retour à la page principale des auteurs
Search engine sitemap module for PostNuke

Requirements
------------
This module requires at least PostNuke .80


Installation and Usage
----------------------

This module provides a dynamically generated google sitemap file out of a PostNuke site. Support is provided for many of the more popular postnuke modules. Additional plugins can be written for modules not supported out of the box.

Installation of this module follows the same procedure as any other PostNuke module. Copy the module directory into the modules directory of your PostNuke site. Login to your site using your admin account. From the modules admin panel regenerate the modules list then install and activtate the google sitemap module.

To see the output point your browser at index.php?module=googlesitemap. This is the URL you provide google with. You need to have signed up with google for it's sitemap service - see https://www.google.com/webmasters/sitemaps/login?hl=en.

Current modules supported
-------------------------

News, Pages, Reviews, Stats, Members List, Downloads, Web Links, pnForum, PagerSetter, Photoshare, 
pnFlashGames, phpcomic,  AmaZone, Books, pnZClassifieds, pnphpbb2, cmodsweblinks, pn_ZClassifieds,
books, Content Express PagEd, tRSSNews, pnWikka, updownload, paypalcart.

Supporting new modules
----------------------

Writing a plugin for your favorite module depends very much on the module and how it's coded. 
If the module is API compliant (i.e. type 2 in the db) then you'll most likely not require a plugin. 

Create the file modules/sesitemap/pntemplates/sesitemap_user_<module_name>.htm. Add something like 
the following (modified for your particuar module) to this file.

Code:

   <!--[pnmodavailable modname=mymod assign=mymod]-->
   <!--[if $mymod and $myitems]-->
      <!--[pnmodapifunc modname=mymod func=getall assign=myitems]-->
      <!--[if $myitems]-->
          <!--[foreach from=$myitems item=myid]-->
              <url>
                  <loc><!--[pnmodurl modname=mymod func=display myidvar=$myid]--></loc>
                  <changefreq>daily</changefreq>
              </url>
          <!--[/foreach]-->
       <!--[/if]-->
   <!--[/if]-->


If a module is non API compliant (i.e. type 1) then a custom plugin needs writing. No instructions can 
be given as to how to do this given the variability of coding of these type of modules. See the 
examples of the news and topics plugins for some examples.