--- a/src/pyams_content/features/search/portlet/interfaces.py Wed Dec 19 10:40:58 2018 +0100
+++ b/src/pyams_content/features/search/portlet/interfaces.py Wed Dec 19 11:02:20 2018 +0100
@@ -12,11 +12,12 @@
__docformat__ = 'restructuredtext'
+from zope.schema import Bool
+
+from pyams_content import _
from pyams_i18n.schema import I18nTextLineField
from pyams_portal.interfaces import IPortletSettings
-from pyams_content import _
-
class ISearchResultsPortletSettings(IPortletSettings):
"""Search results portlet settings"""
@@ -24,3 +25,10 @@
title = I18nTextLineField(title=_("Title"),
description=_("Portlet main title"),
required=False)
+
+ 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)"),
+ required=False,
+ default=False)