--- a/src/pyams_default_theme/component/association/interfaces/__init__.py Tue Dec 04 15:53:25 2018 +0100
+++ b/src/pyams_default_theme/component/association/interfaces/__init__.py Tue Dec 04 15:59:30 2018 +0100
@@ -17,14 +17,14 @@
# import packages
from zope.interface import Interface
-from zope.schema import Bool, Set, Choice
+from zope.schema import Bool, Set, Choice, Int
# import interfaces
from pyams_content.component.paragraph.interfaces import PARAGRAPH_FACTORIES_VOCABULARY
from pyams_default_theme import _
-class IAssociationParagraphRemoteContentRendererSettings(Interface):
+class IBaseAssociationParagraphRemoteContentRendererSettings(Interface):
"""Associations paragraph remote content renderer settings interface"""
display_title = Bool(title=_("Display title?"),
@@ -37,6 +37,19 @@
required=True,
default=False)
+
+class IAssociationParagraphSlicedRemoteContentRendererSettings(IBaseAssociationParagraphRemoteContentRendererSettings):
+ """Associations paragraph special reportage content renderer settings interface"""
+
+ display_n_paragraphs = Int(title=_("N first paragraphs"),
+ description=_("Select the N first paragraphs found for each remote content (default: N=1)"),
+ required=False,
+ default=1)
+
+
+class IAssociationParagraphRemoteContentRendererSettings(IBaseAssociationParagraphRemoteContentRendererSettings):
+ """Associations paragraph remote content renderer settings interface"""
+
factories = Set(title=_("Paragraph types"),
description=_("Select list of paragraph types you want to include; an empty "
"selection means that all paragraphs will be selected"),