Skip to content

Commit

Permalink
Add Find plugin to the new content element wizard
Browse files Browse the repository at this point in the history
This uses the fontawesome icon fa-search.
  • Loading branch information
cedricziel committed Jan 20, 2017
1 parent 9f4bb2b commit 5d7f6c3
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Configuration/TSconfig/ContentElementWizard.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mod.wizards.newContentElement.wizardItems.plugins {
elements {
find {
iconIdentifier = ext-find-ce-wizard
title = LLL:EXT:find/Resources/Private/Language/locallang_be.xml:ce.title
description = LLL:EXT:find/Resources/Private/Language/locallang_be.xml:ce.description
tt_content_defValues {
CType = list
list_type = find_find
}
}
}
}
23 changes: 23 additions & 0 deletions Resources/Private/Language/locallang_be.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>

<meta type="array">
<type>module</type>
<description>Backend language labels for the »find« extension</description>
</meta>

<data type="array">

<languageKey index="default" type="array">
<label index="ce.title">TYPO3 Find</label>
<label index="ce.description">A frontend for Solr indexes.</label>

</languageKey>

<languageKey index="de" type="array">
<label index="ce.title">TYPO3 Find</label>
<label index="ce.description">Ein frontend für Solr Indices.</label>
</languageKey>

</data>
</T3locallang>
17 changes: 17 additions & 0 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,22 @@
]
);

if (TYPO3_MODE === 'BE') {
/*
* Register icons
*/
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext-find-ce-wizard',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
['name' => 'search']
);
}

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:find/Configuration/TSconfig/ContentElementWizard.tsconfig">');

// RealURL autoconfiguration
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration']['find'] = 'EXT:find/Classes/Hooks/RealUrl.php:Subugoe\\Find\\Hooks\\RealUrl->addRealUrlConfiguration';


0 comments on commit 5d7f6c3

Please sign in to comment.