You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh '''casperjs test $FTEST_DIR/eea/*.js --url=$(docker inspect --format {{.NetworkSettings.IPAddress}} $BUILD_TAG-ft-www):8080 --xunit=xunit-functional/ftestsreport.xml'''
sh '''casperjs test $FTEST_DIR/kgs/*.js --url=$(docker inspect --format {{.NetworkSettings.IPAddress}} $BUILD_TAG-ft-kgs):8080 --xunit=ftestsreport.xml'''
175
+
} catch (err) {
176
+
sh '''docker logs --tail=100 $BUILD_TAG-ft-kgs'''
177
+
throw err
178
+
} finally {
179
+
sh '''docker stop $BUILD_TAG-ft-kgs'''
180
+
sh '''docker rm -v $BUILD_TAG-ft-kgs'''
181
+
}
182
+
archiveArtifacts '*.png'
183
+
junit 'ftestsreport.xml'
184
+
}
185
+
}
186
+
},
187
+
188
+
// "Plone4": {
189
+
// node(label: 'docker') {
190
+
// script {
191
+
// try {
192
+
// checkout scm
193
+
// sh '''docker run -d -e ADDONS=$GIT_NAME -e DEVELOP=src/$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" --name=$BUILD_TAG-ft-plone4 eeacms/plone-test:4'''
Copy file name to clipboardExpand all lines: README.rst
+73-3Lines changed: 73 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,12 +107,15 @@ Getting started
107
107
108
108
Faceted settings
109
109
================
110
-
(*New in version 4.1*)
111
110
112
111
**Faceted settings** is a menu that appears once you enable Faceted navigation
113
112
within your context next to the **Actions** menu and it allows you to perform
114
113
the following actions:
115
114
115
+
Configure
116
+
---------
117
+
Configure Faceted Navigation TTW.
118
+
116
119
Enable/disable left portlets
117
120
----------------------------
118
121
This allows you to gain more space for faceted navigation pages by disabling
@@ -134,16 +137,82 @@ Hide facets criteria if there is only one page of results.
134
137
Default: **disabled** (*starting with version 5.2*)
135
138
136
139
Autocomplete widget
137
-
-------------------
140
+
===================
141
+
142
+
Setup
143
+
-----
144
+
145
+
You can enhance and boost search by replacing **ZCatalog** with **Apache Solr**, see `collective.solr`_. Thus:
146
+
147
+
* Add **collective.solr** to your eggs section in your buildout and re-run buildout::
148
+
149
+
[buildout]
150
+
eggs +=
151
+
collective.solr
152
+
153
+
* With **Plone 5** you'll need to use a more recent version::
154
+
155
+
[versions]
156
+
collective.solr = >= 8.0.0b1
157
+
158
+
* Start solr::
159
+
160
+
$ docker run -p 8983:8983 eeacms/solr
161
+
162
+
* Install **collective.solr** within **Site Setup > Add-ons**
163
+
164
+
* **Setup and reindex** Solr within **Site Setup > Solr settings**
165
+
166
+
* Add or replace **Text** widgets with **Text field with suggestions** within your faceted enabled items.
167
+
168
+
i18n
169
+
----
170
+
138
171
To include a specific select2 locale, French for instance, you can add a resource `++resource++select2/select2_locale_fr.js` in portal_javascripts (Plone 4). It needs to be after the select2.min.js resource. (You need eea.jquery 8.7 minimum)
139
172
173
+
Suggestions
174
+
-----------
175
+
140
176
You can add a new autocomplete source by registering a IAutocompleteSuggest browser view, you can see an example in
141
-
`eea/facetednavigation/tests/autocomplete.py` and `eea/facetednavigation/tests/autocomplete.zcml`
177
+
`eea/facetednavigation/tests/autocomplete.py <https://github.com/eea/eea.facetednavigation/blob/master/eea/facetednavigation/tests/autocomplete.py>`_ and
0 commit comments