typo3-8.7.x

TYPO3 - Overriding & adding meta tags (from tx_metaseo) on detail view of custom extension

时间秒杀一切 提交于 2021-01-28 08:23:29
问题 I have a custom extension and on the detail page of the records I want to seo pimp the profile sites. I'm also using tx_metaseo. I'm already changing the 'title' tag via the show action like this: /** * action show * * @param Application $record * @return void */ public function showAction(Application $record=null) { // For the search $GLOBALS['TSFE']->indexedDocTitle = $record->getName(); } } But since I have tx_metaseo installed ... I'm also getting the generall meta tags. So on the detail

TYPO3 8.7. Form prefill input field

家住魔仙堡 提交于 2020-04-21 05:13:11
问题 I use Sysextension Form on TYPO3 8.7 and want to prefill input field with get parameter. In Formhandler extension it was easy possible with Tx_Formhandler_PreProcessor_LoadDefaultValues. But how does it work on new form extension? Thanks for help! Martin 回答1: thanks to Stefan from Facebook - solution found on TypoScript Setup Codebox für tx_form - important is renderables { 0 { -> where "0" is number of array index of field in yaml setup. So in my case the field for "datum" is first input

TYPO3 8.7. Form prefill input field

安稳与你 提交于 2020-04-21 05:13:08
问题 I use Sysextension Form on TYPO3 8.7 and want to prefill input field with get parameter. In Formhandler extension it was easy possible with Tx_Formhandler_PreProcessor_LoadDefaultValues. But how does it work on new form extension? Thanks for help! Martin 回答1: thanks to Stefan from Facebook - solution found on TypoScript Setup Codebox für tx_form - important is renderables { 0 { -> where "0" is number of array index of field in yaml setup. So in my case the field for "datum" is first input

Use cropped image with fallback in TypoScript in TYPO3 8

爷,独闯天下 提交于 2019-12-25 01:45:02
问题 This TS code always produces a 600x400px image: 10 = FILES 10 { required = 1 references { table = tt_content fieldName = image } renderObj = IMAGE renderObj { wrap = <div class="teaser-image">|</div> file.import.data = file:current:originalUid // file:current:uid file.crop.data = file:current:crop file.width=600c file.height=400c } } If I remove file.width=600c file.height=400c then the cropped image from the crop wizard will be used. But I need both (it's an upgrade of an existing site): if

List View after DateMenu shows all newsitems, instead of only items of selected year/month

霸气de小男生 提交于 2019-12-11 18:52:00
问题 request uri: id=55&tx_news_pi1%5BoverwriteDemand%5D%5Byear%5D=2016&tx_news_pi1%5BoverwriteDemand%5D%5Bmonth%5D=10&tx_news_pi1%5Bcontroller%5D=News&cHash=36b4a3a8303b04f2c15c193b6a338b10&no_cache=1 Selection on year (= 2016) and month (= 10), but the news extension does nothing with these selectionitems. Result: all the newsitems are shown. What must I do to activate the selection? 回答1: You should uncheck option "Disable override demand" in news-plugin tab "additional". Thats works for me. 来源:

typo3 add a main menu in backend

我的未来我决定 提交于 2019-12-11 06:16:33
问题 I am trying to add a new main module entry to the module navigation on the left of the backend of typo3. I have found online that this should be possibel through the ::addModule method. I am trying it like this: \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule( 'test', 'sub', '', '', [ 'labels' => 'LLL:EXT:eh_bootstrap/Resources/Private/Language/locallang_mod_testxy.xlf', 'name' => 'test', 'iconIdentifier' => 'eh-bootstrap-icon', 'access' => 'user,group' ] ); having read the