API Reference / API Parameters / renderingContent
Type: Object
Engine default:
Parameter syntax
'renderingContent' => array

Can be used in these methods:

About this parameter

Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules.

Usage notes

InstantSearch uses this property to define appearances through configuration, for example with the dynamicWidgets widget.

Examples

Set renderingContent

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$index->setSettings([
  'renderingContent' => [
    'facetOrdering' => [
      'facets' => [
        'order' => ['size', 'brand']
      ],
      'values' => [
        'brand'=> [
          'order' => ['uniqlo'],
          'sortRemainingBy' => 'count'
        ],
        'size'=> [
          'order' => ['S', 'M', 'L'],
          'sortRemainingBy' => 'hidden'
        ],
      ]
    ]
  ]
]);

Did you find this page helpful?