diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-12 10:28:26 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-12 10:28:26 +0200 |
commit | 5a1e5e34207b9b30ff42200158074953ca1cabab (patch) | |
tree | cc083499a019bec9baba70405801b854aa7cdb0f /user_guide_src/source/libraries/pagination.rst | |
parent | 7eb7ebfaa05b99c12746a7042116afa51d55260e (diff) |
Add support for the anchor 'rel' attribute in the Pagination library
Diffstat (limited to 'user_guide_src/source/libraries/pagination.rst')
-rw-r--r-- | user_guide_src/source/libraries/pagination.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/pagination.rst b/user_guide_src/source/libraries/pagination.rst index f1653c913..560755fb6 100644 --- a/user_guide_src/source/libraries/pagination.rst +++ b/user_guide_src/source/libraries/pagination.rst @@ -254,3 +254,27 @@ Adding a class to every anchor If you want to add a class attribute to every link rendered by the pagination class, you can set the config "anchor_class" equal to the classname you want. + +:: + + $config['anchor_class'] = 'myclass'; // class="myclass" + +********************************** +Changing the "rel" attribute value +********************************** + +By default, the rel attribute will be automatically put under the +following conditions: + +- rel="start" for the "first" link +- rel="prev" for the "previous" link +- rel="next" for the "next" link + +If you want to disable the rel attribute, or change its value, you +can set the 'attr_rel' config option:: + + // Disable + $config['attr_rel'] = FALSE; + + // Use a custom value on all anchors + $config['attr_rel'] = 'custom_value'; // produces: rel="custom_value"
\ No newline at end of file |