-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.txt
More file actions
69 lines (44 loc) · 1.62 KB
/
README.txt
File metadata and controls
69 lines (44 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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]