Giter VIP home page Giter VIP logo

cakephp-sitemap-plugin's Introduction

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 [email protected]
        

     

cakephp-sitemap-plugin's People

Contributors

josegonzalez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.