My problem is the following:
When I change an image in the Symfony CMF admin, it changes in the admin (the image changes in the admin side, everything good); but in the front side I don't see the change. I see the old image, and it only refresh if I delete all the cache in the folder /web/media/cache/*
How can I solve this?
My config:
liip_imagine:
filter_sets:
article_main_image:
data_loader: cmf_media_doctrine_phpcr
filters:
thumbnail: { size: [480, 360], mode: outbound }
filter_2:
...
cmf_media:
persistence:
phpcr:
enabled: true
To display the image is just do something like:
<img src="{{ detail.image.id|imagine_filter('filter_sets') }}">
or
<img src="{{ cmf_media_display_url(item.image, { imagine_filter : "filter_sets" }) }}">
The imagine_filter works perfect, but the image never gets updated when I change it from the admin.
The url of a normal image is:
and when I change the image, the name 'image' doesn't change, because it's the name of the field in the document/form.
Well I'm lost, I tried everything. I don't get why in the sonata admin, image changes; but in the front it doesn't.
--
You received this message because you are subscribed to a topic in the Google Groups "symfony-cmf-devs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/symfony-cmf-devs/kN8BjZGtFdI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to symfony-cmf-de...@googlegroups.com.
![]() | MARCO ALVAREZ Analyste développeur m.al...@c2is.fr |
103 rue Vauban - 69006 Lyon T. 04 37 24 78 20 - F. 04 37 24 78 21 www.c2is.fr |
To unsubscribe from this group and all its topics, send an email to symfony-cmf-de...@googlegroups.com.
![]() | MARCO ALVAREZ Analyste développeur m.al...@c2is.fr |
103 rue Vauban - 69006 Lyon T. 04 37 24 78 20 - F. 04 37 24 78 21 www.c2is.fr |