DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

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