Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. {% set query = craft.request.getParam('q') %}
  2.  
  3. {% set articles = craft.entries({
  4. section: 'article',
  5. order: 'score',
  6. search: {
  7. attribute: 'keywords',
  8. query: query,
  9. subLeft: true,
  10. subRight: true
  11. }
  12. }) %}
  13.  
  14. search: {
  15. attribute: {
  16. 'keywords',
  17. 'body',
  18. 'title'
  19. },
  20.  
  21. 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