--- a/src/pyams_content/features/search/portlet/interfaces.py Wed Sep 25 09:50:05 2019 +0200
+++ b/src/pyams_content/features/search/portlet/interfaces.py Wed Sep 25 09:52:05 2019 +0200
@@ -27,17 +27,21 @@
required=False)
allow_empty_query = Bool(title=_("Allow empty query?"),
- description=_("If 'no', no result will be displayed if user didn't entered a search "
- "string"),
+ description=_("If 'no', no result will be displayed if user didn't "
+ "entered a search string"),
required=True,
default=True)
def has_user_query(self):
"""Check if user entered custom search arguments"""
+ def get_items(self, request=None, limit=None, ingore_cache=False):
+ """Get search results"""
+
force_canonical_url = Bool(title=_("Force canonical URL?"),
- description=_("By default, internal links use a \"relative\" URL, which tries to "
- "display link target in the current context; by using a canonical URL, "
- "you can display target in it's attachment context (if defined)"),
+ description=_("By default, internal links use a \"relative\" URL, "
+ "which tries to display link target in the current "
+ "context; by using a canonical URL, you can display "
+ "target in it's attachment context (if defined)"),
required=False,
default=False)