Skip to main content

Hiding columns

Hide columns in the results table with the hiddenColumns property:

Example

<property name="hiddenColumns">
<list>
<value>TypeCourrier</value>
</list>
</property>

Display modes

FlowerDocs supports two display modes for search results:

  • Tabular -- classic table format
  • Thumbnail -- ARender generates a thumbnail of the component

Three configurations are possible depending on whether you want to offer a choice to the user or force a specific mode.

Tabular and thumbnails (switcher)

Use SwitcherSearchResponsePresenterProvider to let the user switch between tabular and thumbnail modes.

warning

Both tabs are always present, this provider does not support disabling one of them. If you need only one mode, see Tabular only or Thumbnail only.

By default, tabular is shown first. To show thumbnails first, set tableByDefault to false.

To configure the card content, add the cardPresenter property inside the SwitcherSearchResponsePresenterProvider bean. The CardSearchResponsePresenterProvider supports three template properties where ${fieldName} placeholders are replaced with values from the search results:

PropertyDescription
titleTemplateMain title of the card
headingTemplateSubtitle displayed below the title
contentTemplateBody content of the card
<property name="responsePresenterProvider">
<bean class="com.flower.docs.gui.client.search.response.SwitcherSearchResponsePresenterProvider">
<!-- Set to false to show thumbnails first -->
<property name="tableByDefault" value="true" />
<property name="cardPresenter">
<bean class="com.flower.docs.gui.client.search.response.CardSearchResponsePresenterProvider">
<property name="titleTemplate">
<list>
<bean class="com.flower.docs.domain.i18n.I18NLabel">
<property name="language" value="EN" />
<property name="value" value="${name}" />
</bean>
<bean class="com.flower.docs.domain.i18n.I18NLabel">
<property name="language" value="FR" />
<property name="value" value="${name}" />
</bean>
</list>
</property>
<property name="headingTemplate">
<list>
<bean class="com.flower.docs.domain.i18n.I18NLabel">
<property name="language" value="EN" />
<property name="value" value="Added ${creationDate}, by ${owner}" />
</bean>
<bean class="com.flower.docs.domain.i18n.I18NLabel">
<property name="language" value="FR" />
<property name="value" value="Ajouté le ${creationDate}, par ${owner}" />
</bean>
</list>
</property>
</bean>
</property>
</bean>
</property>

Tabular only

Use TableSearchResponsePresenterProvider directly to force tabular-only display. No mode switcher is shown.

<property name="responsePresenterProvider">
<bean class="com.flower.docs.gui.client.search.response.TableSearchResponsePresenterProvider" />
</property>

Thumbnail only

Use CardSearchResponsePresenterProvider directly to force thumbnail-only display. No mode switcher is shown. It supports the same titleTemplate, headingTemplate, and contentTemplate properties as described above.

<property name="responsePresenterProvider">
<bean class="com.flower.docs.gui.client.search.response.CardSearchResponsePresenterProvider">
<!-- Configure titleTemplate, headingTemplate, contentTemplate as needed -->
</bean>
</property>

Export

Search results can be exported as a CSV file. The export is limited to the first 200 results for performance.