Download the PHP package ciricihq/cake-sitemap without Composer
On this page you can find all versions of the php package ciricihq/cake-sitemap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ciricihq/cake-sitemap
More information about ciricihq/cake-sitemap
Files in ciricihq/cake-sitemap
Package cake-sitemap
Short Description A CakePHP Plugin for adding automatic XML and HTML Sitemaps to an app
License MIT
Homepage https://github.com/loadsys/CakePHP-Sitemap
Informations about the package cake-sitemap
CakePHP-Sitemap
The Sitemap provides a mechanism for displaying Sitemap style information (the url, change frequency, priority and last modified datetime) for a set of Tables that CakePHP has access to.
Requirements
- CakePHP 3.0.0+
- PHP 5.6+
Installation
In your config/bootstrap.php file, add:
OR
Usage
-
Add list of tables to display Sitemap records via an array at
Sitemap.tables - Add the
Sitemap.SitemapBehavior to each table as well
Configuration
-
Default configuration options for the
SitemapBehavior is: -
To modify these options for instance to change the
changefreqwhen listing records, update theaddBehaviormethod call for theTablein question like so: -
To customize the url generated for each record create a method named
getUrlin the matchingTableclass. - To customize the templates used when displaying the Sitemap, the CakePHP Book provides information regarding overriding Plugin Templates.
Contributing
Code of Conduct
This project has adopted the Contributor Covenant as its Translations are available.
Reporting Issues
Please use GitHub Isuses for listing any known defects or issues.
Development
When developing this plugin, please fork and issue a PR for any new development.
Set up a working copy:
Make your changes:
Then commit and push your changes to your fork, and open a pull request.
License
Copyright
All versions of cake-sitemap with dependencies
cakephp/cakephp Version ~3.1
composer/installers Version ~1.0
composer-plugin-api Version ~1.0