Last change
on this file since 2151 was
2151,
checked in by mylan, 14 years ago
|
#148: Update readme with canonical link usage explanation
|
-
Property svn:eol-style set to
native
|
File size:
941 bytes
|
Rev | Line | |
---|
[782] | 1 | quintagroup.canonicalpath Package Readme |
---|
[1709] | 2 | ======================================== |
---|
[782] | 3 | |
---|
[2151] | 4 | The package serves for possibility to define path and/or link for the |
---|
| 5 | object, which may differ from standard Physical path or URL in portal. |
---|
| 6 | It's uses by such products as quintagroup.seoptimizer (for defining |
---|
| 7 | canonical link of the object), quintagroup.plonegooglesitemaps (on |
---|
| 8 | google sitemaps generation). |
---|
[782] | 9 | |
---|
[2151] | 10 | This package intended for bring *canonical_path* and/or |
---|
| 11 | *canonical_link* property to any traversable object. For that it |
---|
| 12 | defines ICanonicalPath and ICanonicalLink interfaces, and register |
---|
| 13 | basic adapters for ITraversable objects. |
---|
[782] | 14 | |
---|
[2151] | 15 | Also package register *canonical_path* and *canonical_link* indexers |
---|
| 16 | for possible usage in catalog (ZCatalog). |
---|
[782] | 17 | |
---|
[2151] | 18 | Default adapters behaviour: |
---|
| 19 | |
---|
| 20 | - *canonical_path* return path from portal root, i.e. for |
---|
| 21 | `/plone/front-page` *canonical_path* will be `/front-page`. |
---|
| 22 | - *canonical_link* return absoulute url of the object. |
---|
Note: See
TracBrowser
for help on using the repository browser.