Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Click [Add Property]. A new entry is added to the list of properties.
  2. Enter a string in the Name field to identify the property.
  3. Enter a string in the Identifier field that will be used to uniquely identify the property within XperienCentral.

    Note

    Once you have entered a string and saved the template, the identifier can no longer be modified, therefore be sure to plan out carefully beforehand what your scheme is for template identifiers.


  4. Select the property type from the drop-down list. The options are:

    TypeDescription
    StringA field that accepts any string of characters. The input field can be either a single line or a multiple line field. Which kind is determined by the Subtype field defined in the next step.
    BooleanA checkbox that can either be selected or cleared.
    IntegerA single line field that accepts a positive or negative integer (no decimal points).
    DateA date picker which can be used to select a date. The Subtype field defined in the next step determines whether the field selects a date or a combination of date and time.
    ImageA Browse button which you can use to select an image.

     


  5. Select the subtype of the property from the drop-down list. The options are:

    Property TypeSubtypes
    StringStringSingleLine - A single line field.
    StringMultiLine - A field that accepts multiple lines of strings.
    BooleanBooleanCheckbox - A checkbox that can be either selected or cleared.
    IntegerIntegerInputField - A field that accepts any positive or negative integer (no decimal points).
    DateDateDateOnly - A date picker that you can use to select a day, month and year.
    DateDateTime - A date picker that you can use to select a day, month and year and a field that accepts any valid time (24 hour notation).
    ImageImageUploadOrSelect - a [Browse] button that you can use to select an image file from disk.




  6. Enter one or more CSS class(es) in the Context Classes field in a whitespace separated list.

  7. Enter text in the Help text field. The help text you define appears under the field in the Modular Content element. For best results, make sure the help text provides sufficient guidance for the user filling in the field.
  8. Click [Save].

Properties as Search Facets

Panel
borderColor#0081C0
titleColor#0081C0

The ability to add modular template properties to facets in Advanced Search was introduced in XperineCentral R30.

It is possible to register a modular content template property as a search facet. When you do so, the facet can be searched for in Advanced Search. To register a property as a search facet, follow these steps:

...


...











Modular Content Property Search Facets Examples

Modular Content Template Configuration

Image Removed

Modular Content Type Definition

Image Removed

Create 2 Product Content Types

Image Removed

Properties for Minolta Product

Image Removed

Properties for Pentax Product

Image Removed

Result in Advanced Search

Image Removed

Solr Document Fields

If the search facet is set to unique (with or without facet) or combined (with or without facet), a new Solr document field is added for the property in the content item using this Modular Template (either a modular content type based on this template or a page with this template assigned as page metadata). The name of the field depends on the search facet type:

Unique - wmamodularcontent0[template identifier]0[property identifier]
Combined - wmamodularcontent0[property identifier]

Since combined facets are not template specific, the template identifier is not part of the field name. Unique facets are template specific, which is why the template identifier is part of the field name.
The search facets can subsequently be used in Solr queries (see https://wiki.gxsoftware.com/wiki/pages/viewpage.action?pageId=96469149 for some examples).

Reordering Properties in a Template

...

The properties of the template that is linked to a modular content type appear for that content type in the "Basic" tab of the Properties Widget. For each instance of the modular content type you can fill in the template properties to further identify/describe it. For example:



Back to top


...

Modular Content Template Properties as Search Facets


Panel
borderColor#0081C0
titleColor#0081C0

The ability to add modular template properties to facets in Advanced Search was introduced in XperineCentral R30.


It is possible to register a modular content template property as a search facet. When you do so, the facet can be searched for in Advanced Search. To register a property as a search facet, follow these steps:

  1. Expand the "Search index" drop-down list under the template property.
  2. Select the facet definition for the property. The options are:

    OptionDescription
    DisabledThe property is not used as a search facet and no Solr document field is created.
    Unique without facetCreates a Solr document field for the property but no facet.
    Unique with facetCreates an Advanced Search facet and a Solr document field for the property. Values of this property will always be shown as a unique facet in Advanced search and it will not contain values of other properties from other templates,
    Combined without facetCreates a Solr document field for the property but no facet. If another property in another template has the same identifier and its search facet is also set to "Combined without facet". the values of these properties will be shown in a single, combined, facet when the above circumstance is met.
    Combined with facetCreates an Advanced Search facet and a Solr document field for the property. Iif another property in another template has the same identifier and its search facet is also set to "Combined with facet", the values of these properties will be searchable as a single, combined term when the above circumstance is met.





  3. Select "Multiple" if you want to allow multiple values for the facet to be searchable.
  4. Click [Save].


Modular Content Property Search Facets Examples

Modular Content Template Configuration


Image Added


Modular Content Type Definition


Image Added


Create 2 Product Content Types


Image Added


Properties for Minolta Product


Image Added


Properties for Pentax Product


Image Added


Result in Advanced Search


Image Added


Solr Document Fields


If the search facet is set to unique (with or without facet) or combined (with or without facet), a new Solr document field is added for the property in the content item using this Modular Template (either a modular content type based on this template or a page with this template assigned as page metadata). The name of the field depends on the search facet type:

Unique - wmamodularcontent0[template identifier]0[property identifier]
Combined - wmamodularcontent0[property identifier]

Since combined facets are not template specific, the template identifier is not part of the field name. Unique facets are template specific, which is why the template identifier is part of the field name.
The search facets can subsequently be used in Solr queries (see https://wiki.gxsoftware.com/wiki/pages/viewpage.action?pageId=96469149 for some examples).

Exporting Modular Content

...