Exemple #1
0
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// page module plugin settings summary
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$_EXTKEY . '_PiResults_Results'][$_EXTKEY] = 'Tx_Solr_PluginBase_BackendSummary->getSummary';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register search components
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('access', 'Tx_Solr_Search_AccessComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('relevance', 'Tx_Solr_Search_RelevanceComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('sorting', 'Tx_Solr_Search_SortingComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('debug', 'Tx_Solr_Search_DebugComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('analysis', 'Tx_Solr_Search_AnalysisComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('highlighting', 'Tx_Solr_Search_HighlightingComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('spellchecking', 'Tx_Solr_Search_SpellcheckingComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('faceting', 'Tx_Solr_Search_FacetingComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('statistics', 'Tx_Solr_Search_StatisticsComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('lastSearches', 'Tx_Solr_Search_LastSearchesComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('elevation', 'Tx_Solr_Search_ElevationComponent');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register plugin commands
#Tx_Solr_CommandResolver::registerPluginCommand(
#	'results',
#	'advanced_form',
#	'Tx_Solr_PiResults_AdvancedFormCommand',
#	Tx_Solr_PluginCommand::REQUIREMENT_NONE
#);
Tx_Solr_CommandResolver::registerPluginCommand('results, frequentsearches', 'frequentSearches', 'Tx_Solr_PiResults_FrequentSearchesCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
Tx_Solr_CommandResolver::registerPluginCommand('search, results', 'form', 'Tx_Solr_PiResults_FormCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
Tx_Solr_CommandResolver::registerPluginCommand('results', 'resultsPerPageSwitch', 'Tx_Solr_PiResults_ResultsPerPageSwitchCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
Tx_Solr_CommandResolver::registerPluginCommand('search, results', 'errors', 'Tx_Solr_PiResults_ErrorsCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
Tx_Solr_CommandResolver::registerPluginCommand('results', 'lastSearches', 'Tx_Solr_PiResults_LastSearchesCommand', Tx_Solr_PluginCommand::REQUIREMENT_NONE);
Tx_Solr_CommandResolver::registerPluginCommand('results', 'no_results', 'Tx_Solr_PiResults_NoResultsCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_NO_RESULTS);
Tx_Solr_CommandResolver::registerPluginCommand('results', 'faceting', 'Tx_Solr_PiResults_FacetingCommand', Tx_Solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + Tx_Solr_PluginCommand::REQUIREMENT_HAS_RESULTS + Tx_Solr_PluginCommand::REQUIREMENT_NO_RESULTS);
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\Tx_Solr_Search_SearchComponentManager::registerSearchComponent('grouping', 'ApacheSolrForTypo3\\Solrgrouping\\Search\\GroupingComponent');
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['pi_results']['results']['postProcessCommandVariables'][] = 'ApacheSolrForTypo3\\Solrgrouping\\Search\\GroupingComponent';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// updates
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['solrgrouping_templates'] = 'ApacheSolrForTypo3\\Solrgrouping\\Migrations\\Database\\SysTemplate';