DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:search_query_pagelookup

SEARCH_QUERY_PAGELOOKUP

Description:
Filter/reorder search results
DefaultAction:
Performs a search
Preventable:
yes
Added:
2008-08-11

This event is signalled in ft_pageLookup() in inc/fulltext.php. You can use this event to post process the quicksearch results AFTER event advise to filter/reorder them.

Passed Data

before 2010-06-26:

  • $data['id'] ⇒ (string) the page name fragment to search on
  • $data['pageonly'] ⇒ (bool) true, search page names only; false search namespaces and page names
  • results are in simple numerically indexed array

after 2010-06-26:

  • $data['id'] ⇒ (string) the page name fragment to search on
  • $data['in_ns'] ⇒ (bool) false, search page names only; true search namespaces and page names
  • $data['in_title'] ⇒ (bool) true, search in page titles (first heading) as well
  • $data['has_titles'] ⇒ (bool) always true
  • results are in associative array (pagid ⇒ title)

added after 2018-04-05:

  • data['after'] ⇒ (int|string) only show results with an modified time after this date, accepts timestap or strtotime() arguments
  • data['before'] ⇒ (int|string) only show results with an modified time before this date, accepts timestap or strtotime() arguments

See also

devel/event/search_query_pagelookup.txt · Last modified: 2018-12-08 16:03 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki