Browse Source

Add fields to settings

avalanche1-patch-2
Jack Lukic 9 years ago
parent
commit
89d35fe8e4
  1. 13
      server/documents/modules/dropdown.html.eco
  2. 23
      server/documents/modules/search.html.eco

13
server/documents/modules/dropdown.html.eco

@ -2389,6 +2389,19 @@ themes : ['Default', 'GitHub', 'Material']
<td>false</td>
<td>Can be set to an object to specify <a href="/behaviors/api.html">API settings</a> for retrieving remote selection menu content from an API endpoint</td>
</tr>
<tr>
<td>fields</td>
<td>
<div class="code" data-type="css">
fields: {
values : 'values', // grouping for all dropdown values
name : 'name', // displayed dropdown text
value : 'value' // actual dropdown value
}
</div>
</td>
<td>List mapping dropdown content to JSON Property when using API</td>
</tr>
<tr>
<td>saveRemoteData</td>
<td>true</td>

23
server/documents/modules/search.html.eco

@ -568,7 +568,28 @@ type : 'UI Module'
<td>searchFullText</td>
<td>true</td>
<td>Return local results that match anywhere inside your content</td>
</tr>
</tr>
<tr>
<td>fields</td>
<td>
<div class="code" data-type="css">
fields: {
categories : 'results', // array of categories (category view)
categoryName : 'name', // name of category (category view)
categoryResults : 'results', // array of results (category view)
description : 'description', // result description
image : 'image', // result image
price : 'price', // result price
results : 'results', // array of results (standard)
title : 'title', // result title
action : 'action', // "view more" object name
actionText : 'text', // "view more" text
actionURL : 'url' // "view more" url
}
</div>
</td>
<td>List mapping display content to JSON property, either with API or <code>source</code>.</td>
</tr>
<tr>
<td>searchFields</td>
<td>

Loading…
Cancel
Save