Adding Custom Modules to Global Search

An upgrade-safe way of adding a custom module to Global Search.

Open the file(or create): custom/Extension/modules/CUSTOM_MODULE/Ext/Vardefs/vardefs.php

Append the file with these lines:

$dictionary['CUSTOM_MODULE']['unified_search'] = true;
$dictionary['CUSTOM_MODULE']['unified_search_default_enabled'] = true;
$dictionary['CUSTOM_MODULE']['fields']['NAME_OF_FIELD_TO_SEARCH']['unified_search'] = true;

Run a Quick Repair & Rebuild

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.