12 Commits

Author SHA1 Message Date
fbaaa44ae6 forgotten in commit 59bf6628 (2020/07/16) 2020-08-03 11:27:42 +02:00
1c163df081 fix new namespace of twig extensions 2020-07-30 13:08:08 +02:00
59bf662886 fix sf4 deprecated getting private container 2020-07-16 15:51:05 +02:00
7a8ef70cd1 fix renderLabel signature 2015-12-29 17:04:58 +01:00
54391b02f3 consistency in twig methods
The method chill_custom_fields_is_empty take now the fields as first argument, and the customField as second argument, to be consistent with other twig methods.
2015-12-28 00:54:38 +01:00
d2039893b3 Simplifiying Helper and twig functions
Now, the CustomFieldsHelper methods and the twig function which render customFields require always a `Chill\CustomFields\Entity\CustomField`.

The possibility to add a slug and an object as argument to those method is abandoned, and was not used in other bundle (nevertheless, the method to catch a customField from his slug was buggy).
2015-12-28 00:38:27 +01:00
fe73a64e9d Add possibility to hide empty value in customfield group view rendering
A new parameter is defined :

```
chill_custom_fields:
    show_empty_values_in_views = true|false
```

A new method is added to CustomFieldInterface: `isEmptyValue`. To ease
the dev of new classes, an AbstractCustomField class is created, which
implements the most commons function (currently, only isEmptyValue).

A new Twig Filter is added: `chill_custom_field_is_empty`

The twig filter `chill_custom_fields_group_widget` has a new possibility
in array option : `show_empty`. Default to
chill_custom_fields.show_empty_values_in_view. May be forced by
true/false.
2015-12-15 11:11:36 +01:00
Marc Ducobu
101783b9f1 Only display active custom fields in form & view 2015-09-30 13:32:24 +02:00
Marc Ducobu
52aa147ed7 Code presentation refactoring + adding doc 2015-03-18 12:33:35 +01:00
Marc Ducobu
47a9a29236 allowing csv rendering for custom fields 2015-02-17 15:01:12 +01:00
ac0e7a59b4 documentation of chill_custom_field_* signature
[ci skip]
2014-11-10 12:38:52 +01:00
28862bbdb9 create visualisation service rers #268 2014-11-10 12:15:32 +01:00