typo3

“Could not analyse class: maybe not loaded or no autoloader?”

邮差的信 提交于 2019-12-24 07:06:49
问题 I created (my first) extension with one viewhelper. Oops, an error occurred! Could not analyse class:My\Mlv\ViewHelpers\Format\ReplacenewlinesViewHelper maybe not loaded or no autoloader? In use (with news): {namespace m=My\Mlv\ViewHelpers} {newsItem.bodytext -> m:format.replacenewlines()} Directory tree of extension: typo3conf/ext/mlv ext_emconf.php (copied from another ext) /Classes /ViewHelpers /Format ReplaceNewLinesViewHelper.php ReplaceNewLinesViewHelper.php: <?php namespace My\Mlv

How to access the ext_conf_template.txt (extension configuration) in typoscript?

旧街凉风 提交于 2019-12-24 06:35:20
问题 There are a few settings in the ext_conf_template.txt in my extension. I want to check the value of one of these settings, but in typoscript , not in PHP. In PHP it works like this: unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['myExt']) How should I do this in typoscript? 回答1: I did something similar in my code snippet extension (see complete code on Github), where I just added a custom TypoScript condition: [DanielGoerz\FsCodeSnippet\Configuration\TypoScript\ConditionMatching

How to set up Variants for Entry Points of additional languages in TYPO3

跟風遠走 提交于 2019-12-24 06:10:34
问题 The final domains of the project will be: www.domain.com (english, main language, L=0) www.domain.de (german, L=1) The development/preview domains are dev.domain.com dev.domain.de It is possible to create a Variant for the main "Entry Point" in tab "General" of the Site Configuration: Base: https://dev.domain.com/ Condition: applicationContext == "Development" But how can I set up a variant for the second language (german)? 回答1: as long as you need no other language specific configuration,

TYPO3 translate to NOT current language

北慕城南 提交于 2019-12-24 05:14:07
问题 I have typo3 extension with template: {namespace v=Tx_Vhs_ViewHelpers} <f:translate id="LLL:typo3conf/ext/my_ext/Resources/Private/Language/fr.locallang.xlf:labelTerms" /> <f:translate id="LLL:typo3conf/ext/my_ext/Resources/Private/Language/it.locallang.xlf:labelTerms" /> If current language is French, first label translated to French, but second displays in English (default). When I switch current language to Italian, second label displays in Italian but first displays in English How can I

Cant login to backend after Fresh install to the latest typo3 9.5 LTS

孤街醉人 提交于 2019-12-24 05:11:23
问题 Fresh install of Typo3 9.5LTS on the Ubuntu18 host. Went smoothly, new database, everything. Made up the backend user/password & when complete I'm sent to the backend to log in. The login page seemingly just refreshes. If I use the wrong credentials it tells me they are wrong as it should. Going to sys_log I see "user logged in from x.x.x.x" but I'm not allowed further. The redirects actually sent to the server are: 303 POST /typo3?loginProvider=.... 303 GET index.php?route=/main&token=...

TYPO3 7.6.10: How to extend the felogin extension?

不想你离开。 提交于 2019-12-24 04:04:12
问题 I tried to extend the core extension felogin with an extra extension called "feloginextended". I want to add the first_name and the last_name property of the current user into my logout formular. This is my overridden template (only the logout part): <!--###TEMPLATE_LOGOUT###--> <form class="login-form" action="###ACTION_URI###" target="_top" method="post"> <div> <div class="user">###FIRSTNAME### ###LASTNAME###</div> <a class="page-link-button" href="http://tf.lightblue.eu/index.php?id=14"

Extend Repository of a foreign TYPO3 extbase extension

杀马特。学长 韩版系。学妹 提交于 2019-12-24 03:53:04
问题 I have installed the extension 'femanager' on a TYPO3 6.2 installation and successfully extended it with my own fields that get stored and read from the database. Now there is an action in a Controller that calls upon the UserRepository for the findByUsergroup() method to render a list of fe_users with a filter. I want to extend the search filter, and therefore I must alter the method findByUsergroup() from my extension. Is this possible, and if so, how? I have been developing a lot with

Extend Repository of a foreign TYPO3 extbase extension

拟墨画扇 提交于 2019-12-24 03:52:55
问题 I have installed the extension 'femanager' on a TYPO3 6.2 installation and successfully extended it with my own fields that get stored and read from the database. Now there is an action in a Controller that calls upon the UserRepository for the findByUsergroup() method to render a list of fe_users with a filter. I want to extend the search filter, and therefore I must alter the method findByUsergroup() from my extension. Is this possible, and if so, how? I have been developing a lot with

How to edit this Typo3 menu?

给你一囗甜甜゛ 提交于 2019-12-24 01:59:41
问题 I have a one page sample site using the bootstrap_package / Introduction package for Typo3 version 7.6.10. The problem is I am a complete newbie to Typo3 and need help converting the navigation menu. I want them to be anchors to sections in the page. In more detail, From what I see in the backend, there is no (editable) menu; all of the navigation links on the front are coming from the pages that I create in the backend. Is there a way to override this function? Just to be clear, I checked

TYPO3 repository->add not works

橙三吉。 提交于 2019-12-24 01:37:26
问题 I have TYPO3 version 7.6.18 $newMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Istar\\Femessages\\Domain\\Model\\Message'); $newMessage->setUserFrom($myUid); $newMessage->setUserTo($userTo); $newMessage->setChainUid($messageChainUid); $newMessage->setMessage($message); $this->messageRepository->add($newMessage); $persistenceManager = $this->objectManager->get("TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager"); $persistenceManager->persistAll(); Repository does't