The Smartlet Editor

The List Smartlet has a lot of editable properties but the Editor tries to keep it all manageable.

Mutually exclusive properties

Presets for the List Smartlet should disable meaningless controls in the editor by setting an empty value for those properties.

If the inputdata property is set disable the sqlquery property and everything pertaining to the query builder. You can inherit from the disableQueryBuilder preset (with code "SMP_DISABLEQUERYBUILDER") to disable all query builder parameters at once. If sqlquery is set, the query builder should be disabled.

Enable paging by setting the pagesize property. With paging enabled the properties max, morelink and morelinktext become obsolete.

Evaluation Scope

By default, the evaluationscope input field lists all folders directly below the Designs folder in the Smartlet root folder. Use the settingtype filter in a preset to include or exclude folders from this list.

The value of filter is used as a wildcard pattern for the Code field of the folder (so give all designs a descriptive Code to make optimal use of filtering). Designs that contain the filter pattern in their Code field are included in the list. Designs can be excluded instead, by adding an exclamation point (!) at the beginning of the filter.

In the following example the evaluationscope list will contain only folders that have the substring "NEWS" in their Code. The folder NEWSLIST_IMAGE is selected by default.

Smartsite SXML CopyCode image Copy Code
<se:member name="evaluationscope" settingtype="defaultvalue">NEWSLIST_IMAGE</se:member>
<se:member name="evaluationscope" settingtype="filter">NEWS</se:member>

In the following example the evaluationscope list will contain only folders that do not have the substring "IMAGE" in their Code.

Smartsite SXML CopyCode image Copy Code
<se:member name="evaluationscope" settingtype="filter">!IMAGE</se:member>