Skip to content

sdevore/cakephp-sitemap-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sitemap plugin
--------------

This plugin creates dynamic xml sitemaps for search engines.

Install
-------
1. Copy these files to  app/plugins/sitemap directory

2. Add this line to your config/routes.php 
   
   Router::parseExtensions('xml');
   
3. Add the models you want to insert in the sitemap in the $uses array in the sitemap controller.

4. Edit sitemap_siteSettings array to set your own preferences for the home page:

    - changefreq
    - priority

5. Set the preferences for your models.

    - changefreq
    - priority
    - field
    - action
    - controller
    - plugin
    
6. Open http://your_server/sitemap.xml

Sitemap options
--------

Sitemap plugin has different settings you can edit to suit your needs.

 - changefreq. This is the change frequency for your page and it can be one of these values
       
    * always
    * hourly
    * daily
    * weekly
    * monthly
    * yearly
    * never

  - priority. Self explanatory, it can have values from 0.0 to 1.0.
  
  - loc. The url of the page, it will be generated by sitemap plugin and it defaults to:
  
        - field: id
        - action: view
        - controller: pluralized model name
        - plugin: null
        
    Default url for model Post will look like http://your_server/posts/view/1
    You can change all this options in the $sitemap_modelSettings array.
   
  - lastmod. Date of last modification will be added by the plugin if your model has a field updated or modified.

  More about xml sitemaps can be found at http://www.sitemaps.org/protocol.php

Contact
-------

If you want to get in touch with me just email to ivanrise@gmail.com
        

     

About

plugins for the cakephp framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published