ez.no / exponential / documentation / reference / data fetching / content / keyword
fetch( 'content', 'keyword', hash( 'alphabet', alphabet, [ classid, classid,] [ 'limit', limit, ] [ 'offset', offset,] ) )
| Name | Type | Description | Required |
|---|---|---|---|
| alphabet | string | The keyword/letter(s) used for fetching. | Yes. |
| classid | integer | class ID. | No. |
| offset | integer | start at this position in the returned result. | No. |
| limit | integer | fetch maximum this number of nodes. | No. |
A array of keyword and object nodes which used this keyword.
Fetches a array of keywords and node objects contain keywords start with specified pattern. Parameter alphabet could be letter, letters, parts of a word or word. The fetch result could be filtered by class ID. The returned array contains:
This function is added in Exponential 3.3.1.
Fetch all keywords start with 'a' and all articles ( class ID 2) which use these keywords.
{let keyword_list=fetch( 'content', 'keyword', hash( alphabet, "a", classid, 2 ) ) } {section var=KeywordList loop=$keyword_list} {$KeywordList.keyword}: <a href={concat("content/view/full/",$KeywordList.link_object.node_id)|ezurl}> {$KeywordList.link_object.name}</a> {/section} {/let}
Comments