Information sur les auteurs & la licence

Retour à la page principale des auteurs

Aide pour googlesitemap version 1.0

Google sitemap module for PostNuke

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


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, Topics, Stats, Members List, Downloads, Web Links, pnForum, PagerSetter, Photoshare, pnFlashGames, phpcomic, AmaZone, Books, pnZClassifieds.

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

Writing a plugin for your favorite module depends very much on the module and how it's coded. All the work of calling the plugins is in the template (googlesitemap_user_main.htm). If the module is API compliant (i.e. type 2 in the db) then you'll most likely not require a plugin. Add something like the following (modified for your particuar module).

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.


Notes
-----

1) If upgrading from a pre-release build (v0.1) make sure to remove all module files before uploading the new module as not all files present in the official release are present in the pre-build. An overrwrite to leave files remaining from the pre-build.