--- a/src/pyams_content/component/illustration/zmi/__init__.py Mon Feb 05 16:57:47 2018 +0100
+++ b/src/pyams_content/component/illustration/zmi/__init__.py Mon Feb 05 17:01:56 2018 +0100
@@ -56,6 +56,17 @@
render = get_view_template()
+@adapter_config(name='hidden', context=(IIllustration, IPyAMSLayer), provides=IIllustrationRenderer)
+class HiddenIllustrationRenderer(BaseIllustrationRenderer):
+ """Hidden illustration renderer"""
+
+ label = _("Hidden illustration")
+ weight = -999
+
+ def render(self):
+ return ''
+
+
@adapter_config(name='default', context=(IIllustration, IPyAMSLayer), provides=IIllustrationRenderer)
@template_config(template='templates/renderer-default.pt', layer=IPyAMSLayer)
class DefaultIllustrationRenderer(BaseIllustrationRenderer):