![]() |
|
isicsBreadcrumbsPlugin - 0.9.9A simple way to handle breadcrumbs. |
|
![]() |
45
users
Sign-in
to change your status |
The isicsBreadcrumbsPlugin is a simple way to handle breadcrumbs in your applications. |
| Name | Status | |
|---|---|---|
|
|
lead | rf.scisi <<ta>> tcatnoc |
Copyright (c) 2O08 ISICS.fr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
| Version | License | API | Released |
|---|---|---|---|
| 0.9.9beta | LGPL | 0.9.9beta | 23/06/2010 |
| 0.9.1beta | LGPL | 0.9.1beta | 29/07/2008 |
| 0.9.0beta | LGPL | 0.9.0beta | 23/06/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 0.9.9beta | LGPL | 0.9.9beta | 23/06/2010 |
| 0.9.1beta | LGPL | 0.9.1beta | 29/07/2008 |
| 0.9.0beta | LGPL | 0.9.0beta | 23/06/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 0.9.9beta | LGPL | 0.9.9beta | 23/06/2010 |
| 0.9.6beta | LGPL | 0.9.6beta | 25/05/2009 |
| 0.9.5beta | LGPL | 0.9.5beta | 19/05/2009 |
| 0.9.3beta | LGPL | 0.9.3beta | 02/02/2009 |
| 0.9.1beta | LGPL | 0.9.1beta | 29/07/2008 |
| 0.9.0beta | LGPL | 0.9.0beta | 23/06/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 0.9.9beta | LGPL | 0.9.9beta | 23/06/2010 |
| 0.9.6beta | LGPL | 0.9.6beta | 25/05/2009 |
| 0.9.5beta | LGPL | 0.9.5beta | 19/05/2009 |
| 0.9.3beta | LGPL | 0.9.3beta | 02/02/2009 |
| 0.9.1beta | LGPL | 0.9.1beta | 29/07/2008 |
| 0.9.0beta | LGPL | 0.9.0beta | 23/06/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 0.9.1beta | LGPL | 0.9.1beta | 29/07/2008 |
| 0.9.0beta | LGPL | 0.9.0beta | 23/06/2008 |
Added support for escaping strategy Added options for root item in component
Added support for escaping strategy Added options for root item in component
Fixed README (thanks to Ben Lumley)
Fixed package.xml Updated README to markdown
Nothing
Added action caching support.
Initial public release.
The isicsBreadcrumbsPlugin is a simple way to handle breadcrumbs in your applications.
isicsBreadcrumbsPlugin is working on Symfony 1.1 or greater.
The isicsBreadcrumbsPlugin is licensed under the GNU Lesser General Public License (LGPL).
Install the plugin:
$ symfony plugin:install isicsBreadcrumbsPlugin -s beta $ symfony cc
Enable the module isicsBreadcrumbs in settings.yml:
all:
.settings:
enabled_modules: [default, isicsBreadcrumbs]Define the path in your templates:
<?php $breadcrumbs->addItem('My action', 'myModule/myAction') ?>
=> Home > My action
If the action is deeper:
<?php $breadcrumbs->addItem('My previous action', 'myModule/myPreviousAction') ?>
<?php $breadcrumbs->addItem('My action', 'myModule/myAction') ?>
=> Home > My previous action > My action
Define the path in your actions:
public function executeMyAction()
{
isicsBreadcrumbs::getInstance()->addItem('My action', 'myModule/myAction');
=> Home > My action
Include the breadcrumbs component (in the layout for instance):
<p id="breadcrumbs">
You are here :
<?php include_component('isicsBreadcrumbs', 'show') ?>
</p>
You can set your own root:
<p id="breadcrumbs">
You are here :
<?php include_component('isicsBreadcrumbs', 'show', array(
'root' => array('text' => 'Home', 'uri' => '@myHomepage')
)) ?>
</p>
void addItem(String $test, String $uri, Array $options): add an item at the end of the breadcrumbsvoid clearItems(): erase all itemsisicsBreadcrumbs getInstance(): retrieve the singleton instancearray getItems(): return an array of isicsBreadcrumbsItemvoid setRoot(String $test, String $uri): set root item. By default, a root item is already present (text: Home, uri: @homepage).breadcrumbs template shorcut (break compatibility with sf 1.0).