Description

The load directive sends an id or a query to the twigkit API and stores the result on a scoped variable and in the Response Service

Usage

as element:
<search:load
       var="{string}"
       platform="{string}"
       id="{string}"
       query="{string}"
       [error-page="{string}"]>
</search:load>

Directive info

  • This directive creates new scope.

Parameters

ParamTypeDetails
varstringThe name of the variable to store the document in.
platformstringThe name of the platform to retrieve the document from.
idstringThe ID of the document to retrieve. If both an ID and query are present ID will take precedence.
querystringThe name of the query object. If both an ID and query are present ID will take precedence.
error-page (optional)stringError page to redirect to when Platform throws an exception.