7 Commits

Author SHA1 Message Date
a3e7c60e01 replacing delegated_block api by widget api 2016-09-18 23:55:15 +02:00
5c67a9098e allow delegation of block rendering
ref #12

In a template, you can now allow rendering of a block from other bundle.

The layout template must explicitly call the rendering of other block,
with the twig function

```
chill_delegated_block('block_name', { 'array' : 'with context' } )
```

This will launch an event
`Chill\MainBundle\Templating\Events\DelegatedBlockRenderingEvent` with
the event's name 'chill_block.block_name'.

You may add content to the page using the function
`DelegatedBlockRenderingEvent::addContent`.
2016-03-14 22:45:04 +01:00
Marc Ducobu
1c252eac43 Move csvCellFilter into Templating\CSVCellTwig - close #416 2015-03-03 10:57:23 +01:00
Marc Ducobu
88cb918c82 Adding twig filter for csv cell content - refs #401 2015-02-18 13:11:34 +01:00
Marc Ducobu
6cb7b89a27 Adding license 2015-02-18 12:37:17 +01:00
ab8c565ff3 add language fallback to translatable string
refs #332
2015-02-05 16:43:45 +01:00
57f2fa3178 create an helper + twig filter to show translatable string in current locale.
The twig filter is localize_translatable_string

Example : {{ person.nationality|localize_translatable_string }}

The helper may be called with $container->get('chill.main.helper.translatable_string'). The main function is ->localize(array $strings)

Example:

$container->get('chill.main.helper.translatable_string')->localize($country->getName()); #return the name in current locale

close #299
2014-11-17 01:03:07 +01:00