Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set query = craft.request.getParam('q') %}
- {% set articles = craft.entries({
- section: 'article',
- order: 'score',
- search: {
- attribute: 'keywords',
- query: query,
- subLeft: true,
- subRight: true
- }
- }) %}
- search: {
- attribute: {
- 'keywords',
- 'body',
- 'title'
- },
- A hash key must be followed by a colon (:). Unexpected token "punctuation" of value "," ("punctuation" expected with value ":").
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement