HACK: Search plugin: custom fields in search results
Posted: Thu Jul 01, 2021 10:38 pm
Hello,
Found a solution how can searching also custom fields.
Adding this code in ../search/plugin.php (below line 209):
Replace CUSTOM-FIELD with the name from your custom-field, (only useful for string-type custom fields).
Found a solution how can searching also custom fields.
Adding this code in ../search/plugin.php (below line 209):
Code: Select all
$cache[$pageKey]['CUSTOM-FIELD'] = $page->custom('CUSTOM-FIELD');