Summary selector (cart)

Description

Define a CSS selector to an element with the search result summary to extract its text to set it as a cart item summary. CSS selector should be relative to its parent defined in item.list.

Default value

The default HTML is sourced from the results page default template (simple.ftl).

<li data-fb-result=URL class="result">
  <p>
    <small class="text-muted">19 Nov 2023:</small>
    <span class="search-summary">Summary text</span>
  </p>
</li>
item: {
  summary: 'p span'
}

Custom Example

<div class="listing-item__body">
    <div class="listing-item__summary">
    Find current student information including student admin, enrolment, course planning, fees, graduation, support services, student IT and more.</div>
</div>
item: {
  summary: 'div.listing-item__body > div'
}