Modification of search template syntax


This page should only be applied if the script asks you to pass the manual migration code.CMS.update-search-model-criteria-syntax

The syntax of search model criteria has been modified:

<criteria [field|system]-ref="title" />

becomes

<item ref="title">

This change was made automatically. However, you may find that the following line appears 2 times in the same set of criteria (most often the advanced criteria):

<item ref="*">

You must therefore delete one of the 2 occurrences, by hand.

Also

<criteria custom-ref="title">
<class name="org.ametys.xxx.StaticCriterionDefinitionClass" />
[Some other configuration]
</criteria>

becomes

<item name="title" class="org.ametys.xxx.StaticCriterionDefinitionClass" />
[Some other configuration
</item>

The change from criteria to item, and from custom-ref to name is automatic. The class, on the other hand, has to be moved manually.

Back to top