-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
PETIT Yoann
committed
May 26, 2014
1 parent
be0b1b8
commit 97370b6
Showing
7 changed files
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,6 +193,4 @@ public function getAttributes() | |
{ | ||
return $this->attributes; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
`20 Janvier 2013` | ||
#2014-04-18 | ||
- Rewrite documentation | ||
|
||
#2013-12-13 | ||
- Handle slug parameters in breadcrumb title | ||
|
||
#2013-07-29 | ||
- Handle slug parameters in route parameters | ||
|
||
#2013-01-25 | ||
- Add additional attributes for the breadcrumb | ||
|
||
#2013-01-24 | ||
- Add override template features | ||
|
||
#2013-01-20 | ||
- Add position parameter | ||
- Update documentation | ||
- Update documentation | ||
|
||
#2012-06-30 | ||
- Manage JMSSecurityExtraBundle proxy class | ||
|
||
#2012-04-27 | ||
- Translate titles | ||
|
||
#2011-12-17 | ||
- Initial commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Twig configuration | ||
|
||
Add breadcumbs to the trail with Twig in your template works exactly like the [PHP configuration](php_configuration.md). | ||
You just have to add the service in a global variable. | ||
|
||
## Configuration | ||
|
||
```yml | ||
#app/config/config.yml | ||
twig: | ||
globals: | ||
breadcrumb_trail: "@apy_breadcrumb_trail" | ||
``` | ||
## Basic example | ||
```django | ||
<!-- MyProject\MyBundle\Resources\views\myTemplate.html.twig --> | ||
{% do breadcrumb_trail.add('My new breadcrumb') %} | ||
{{ apy_breadcrumb_trail_render() }} | ||
``` | ||
|
||
Functions are chainable so you can write this code: | ||
|
||
```django | ||
<!-- MyProject\MyBundle\Resources\views\myTemplate.html.twig --> | ||
{% do breadcrumb_trail.reset().add('breadcrumb 1').add('breadcrumb 2') %} | ||
{{ apy_breadcrumb_trail_render() }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters