42 |
42 |
43 anchors_only = Bool(title=_("Anchors only?"), |
43 anchors_only = Bool(title=_("Anchors only?"), |
44 description=_("If 'yes', only paragraphs set as 'anchors' will be selected"), |
44 description=_("If 'yes', only paragraphs set as 'anchors' will be selected"), |
45 required=True, |
45 required=True, |
46 default=False) |
46 default=False) |
|
47 |
|
48 |
|
49 class IParagraphNavigationPortletSettings(IPortletSettings): |
|
50 """Paragraphs container navigation settings interface""" |
|
51 |
|
52 display_title = Bool(title=_("Display content title?"), |
|
53 description=_("If 'no', content's title will not be repeated into navigation portlet"), |
|
54 required=True, |
|
55 default=True) |
|
56 |
|
57 paragraphs = List(title=_("Selected paragraphs"), |
|
58 description=_("List of paragraphs selected for navigation; an empty selection means that " |
|
59 "all paragraphs will be selectable by following filters; otherwise, " |
|
60 "this selection will have priority"), |
|
61 value_type=Choice(vocabulary='PyAMS content paragraphs'), |
|
62 required=False) |
|
63 |
|
64 factories = Set(title=_("Paragraph types"), |
|
65 description=_("Select list of paragraph types you want to use for navigation; an empty " |
|
66 "selection means that all paragraphs types will be selected"), |
|
67 required=False, |
|
68 value_type=Choice(vocabulary=PARAGRAPH_FACTORIES_VOCABULARY)) |
|
69 |
|
70 anchors_only = Bool(title=_("Anchors only?"), |
|
71 description=_("If 'no', all paragraphs will be used as navigation anchors"), |
|
72 required=True, |
|
73 default=True) |