9 Commits

Author SHA1 Message Date
84128fa718 transform raw value to serialized value in isEmptyValue 2016-01-05 12:10:49 +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
b1ad090e8c Adding doc to Service/CustomFieldsHelper.php 2015-03-18 14:19:59 +01:00
Marc Ducobu
3534e64d28 Adding doc to Service/CustomFieldProvider.php 2015-03-18 13:52:10 +01:00
Marc Ducobu
92c12963a8 Adding license 2015-03-18 12:04:47 +01:00
Marc Ducobu
47a9a29236 allowing csv rendering for custom fields 2015-02-17 15:01:12 +01:00
28862bbdb9 create visualisation service rers #268 2014-11-10 12:15:32 +01:00
8011746b26 move bundle to root dir for inclusion in packagist refs #259 2014-11-04 17:10:59 +01:00