Last active
October 7, 2016 14:16
-
-
Save fjacobi/fddb247f3d5cf64262d117b46289bbfa to your computer and use it in GitHub Desktop.
ke_search with Mask
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// extend ke_search for mask content elements | |
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyPageContentFields'][] = 'Vendor\\Ext\\Hooks\\SearchExtension'; | |
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentFromContentElement'][] = 'Vendor\\Ext\\Hooks\\SearchExtension'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor/Ext/Hooks; | |
class SearchExtension | |
{ | |
public function modifyPageContentFields(&$fields, $pObj) | |
{ | |
$fields .= ', subheader, tx_mask_mask_rte'; | |
} | |
public function modifyContentFromContentElement(&$bodytext, &$ttContentRow, $pObj) | |
{ | |
$ttContentRow['header'] .= " " . $ttContentRow['subheader']; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment