src/pyams_content/shared/imagemap/paragraph.py
changeset 407 0ef5de2d5674
parent 391 6cd4434612f5
child 555 8e8a14452567
--- a/src/pyams_content/shared/imagemap/paragraph.py	Thu Feb 22 12:00:05 2018 +0100
+++ b/src/pyams_content/shared/imagemap/paragraph.py	Thu Feb 22 15:58:28 2018 +0100
@@ -18,7 +18,7 @@
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
 from pyams_content.features.checker.interfaces import IContentChecker, ERROR_VALUE, MISSING_VALUE, MISSING_LANG_VALUE
-from pyams_content.shared.imagemap.interfaces import IImageMapParagraph
+from pyams_content.shared.imagemap.interfaces import IImageMapParagraph, IMAGEMAP_PARAGRAPH_TYPE
 from pyams_i18n.interfaces import II18nManager, INegotiator, II18n
 from pyams_workflow.interfaces import IWorkflow, IWorkflowState
 
@@ -47,12 +47,13 @@
         return get_reference_target(self.reference, state)
 
 
-@utility_config(name='ImageMap', provides=IParagraphFactory)
+@utility_config(name=IMAGEMAP_PARAGRAPH_TYPE, provides=IParagraphFactory)
 class ImageMapParagraphFactory(BaseParagraphFactory):
     """Image map paragraph factory"""
 
     name = _("Image map")
     content_type = ImageMapParagraph
+    secondary_menu = True
 
 
 @adapter_config(context=IImageMapParagraph, provides=IContentChecker)