devel:event:fulltext_phrase_match
Table of Contents
FULLTEXT_PHRASE_MATCH
- Description:
- Allow phrase matching with content from plugins
- DefaultAction:
- Does phrase matching with the wiki text
- Preventable:
- yes
- Added:
- 2014-03-02
This event is signalled by _ft_pageSearch() in inc/fulltext.php when phrases are matched with the page content, handlers can use it to match their own page related content with the phrase as well.
Passed Data
The $event->data
is passed the following array:
[ 'id' => $id, // string, page id 'phrase' => $phrase, //string, phrase to match with the content 'text' => rawWiki($id) //string, raw content of the wiki article ];
If the phrase matches the content, then $evt->result
must be set to true
. If already true, no further processing is needed.
See also
- Code related to this event used in any DokuWiki files, plugins and templates
- Similarities with FULLTEXT_SNIPPET_CREATE
devel/event/fulltext_phrase_match.txt · Last modified: 2022-09-17 01:30 by Klap-in