typo3

Displaying records from EXT:news in specific language

半腔热情 提交于 2019-12-05 17:27:07
I'm trying to display a news record in a different language to the default language where no record in the default language exists. The multilanguage configuration is config { sys_language_mode = strict sys_language_overlay = 0 } The Plugin on the page is set to 'All languages'. News only existing in the default language are suppressed as expected, but news only available in another language are not appended to the list. (EXT:news version is 2.2.1, TYPO3 Version is 4.7.14) This is a bug in the persistence layer of Extbase. The only workaround known to me is to create a news record in the

TYPO3 lists all tables in DB compare because of COLLATE

梦想的初衷 提交于 2019-12-05 16:17:49
I'm using TYPO3 8.7.4 with PHP 7.0.22 and MariaDB 10.2.7. The DB Compare inside the InstallTool shows me that TYPO3 wants to alter all tables because the current value differs from the expected by the collation of the table: ALTER TABLE `be_groups` CHANGE `title` `title` VARCHAR(50) DEFAULT '' NOT NULL Current value: title VARCHAR(50) DEFAULT '''' NOT NULL COLLATE utf8_general_ci MariaDB implemented a change to the Information Schema COLUMNS table which is not backwards compatible with the output expected from the 'original' MySQL: https://jira.mariadb.org/browse/MDEV-13132 来源: https:/

How to add Tooltips to a Flexform Plugin Configuration?

天涯浪子 提交于 2019-12-05 11:32:19
I guess its quite Simple as soon as you know it once, but I am searching on this Topic now for 4+ Hours. So maybe someone can help me out, with a push to the right direction. I develop an Extension for TYPO3 6.2 with Extbase. The Plugin Configuration is done with a FlexForm. To increase Usabillity I want to add Tooltips (helptexts or CSH) to my FlexForm. Approach 1: I tryed it with the Tag <cshFile> and adding the corresponding XML to the Extension Files. As many Forums and Blogs suggest, this is deprecated, so I tought lets try the other Approach. Approach 2: Adding the "locallang_csh

TYPO3 tutorial extension, controller does not exist

时间秒杀一切 提交于 2019-12-05 10:42:10
I'm trying to get started with TYPO3 extensions and was following this tutorial to get to see the basics. In the backend everything works fine, but on the front end I get an error: Oops, an error occurred! Code: 20170209104827c3b58d58 - {"exception":"exception 'ReflectionException' with message 'Class Tx_Inventory_Controller_InventoryController does not exist' My files are exactly the same as in the tutorial. I have no idea what is causing this. I assume I made some dumb mistake with namespaces, but they seem to be all correct. The controller class can be found below and is located in

Execute repository functions in scheduler task

让人想犯罪 __ 提交于 2019-12-05 07:19:38
Currently I have an scheduler task, but I want to use function from my extbase repository (in the same extension). I keep getting "PHP Fatal error: Call to a member function add() on a non-object", no matter how I try to include my repo or controller from extbase. My SampleTask.php: namespace TYPO3\ExtName\Task; class SampleTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask { public function execute() { $controller = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\ExtName\Controller\SampleController'); $new = new \TYPO3\ExtName\Domain\Model\Sample; $new->setName('test');

What are the lowest possible permissions for TYPO3?

做~自己de王妃 提交于 2019-12-05 07:13:21
问题 Currently I'm using 0750 for directories and 0640 for files. Is it possible to lower these permissions? I know this depends on the setup of the hoster (FTP/PHP/Apache user in same group?). But what is possible? Which permission Typo3 really needs for running correctly? According to install tool the following folders should be writable: fileadmin fileadmin/_temp_ typo3 typo3conf typo3conf/ext typo3conf/l10n typo3temp uploads uploads/media uploads/pics uploads/tf 回答1: There is no need for write

“Oops, an error occurred! Code: 201601301501048..” in TYPO3 7.6

我只是一个虾纸丫 提交于 2019-12-04 21:44:02
问题 I installed the Typo3 version 7.6 and After adding extension to my page i got the error "Oops, an error occurred! Code: 201512031647523f4d731f". I am not getting meaning of this error and i also enable 'displayErrors' => 1, in local configuration but still not get meaningful error. 回答1: You need to switch off the "Content Object Exception Handler", which is an exception handler in new versions. If a content element/plugin throws an exception, it does no longer take down the whole site, but

How can i have different translations for action controller in TYPO3?

冷暖自知 提交于 2019-12-04 21:23:54
Is it possible to have a localization based on RealURL 's valueMap static table ? For example, in Deutsch language, I have www.example.com/de/account/produktinfos/ de/ is language account/ page produktinfos/ controller action And what I need is to translate the produktinfos/ part to English, i.e., www.example.com/en/account/productinfo/ . Is there a way to translate the controller action in RealURL? I don't know if this help for you. You can use some realurl post/pre Procs. for example: // realurl Hook for replacing some path $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(

Additional page property fields in TYPO3 CMS 6.2

…衆ロ難τιáo~ 提交于 2019-12-04 20:13:37
What would be the recommended method to add custom page property fields in TYPO3 6.2? In 4.5 I used TemplaVoila which had its own page module and made it easy to add data records on a page level. There are several approaches: The "vanilla" approach: Create an extension (and with it the file ext_emconf.php ) and then create a file ext_tables.sql in the extension root. In it you can put SQL-definitions for the new fields, by defining a CREATE TABLE statement for the pages table: CREATE TABLE pages( myNewField int(11) DEFAULT '', ); This SQL-definition will be merged with existing definitions for

How to clear the cache in Typo3 from an external script?

霸气de小男生 提交于 2019-12-04 19:42:22
I do have a PHP script, which is not an extension for Typo3. Now I would like to delete the whole Cache of Typo3 out of this script. How is that possible? Tamara install the TYPO3 Extension cleartypo3cache create a tool and a keyboard shortcut in PhpStorm 4 to trigger cleartypo3cache SSH access with passwordless pubkey authentication when pushing to a remote host. Install Extension " cleartypo3cache " and create the BE user " _cli_cleartypo3cache " and add the following TSconfig: options.clearCache.all=1 options.clearCache.pages=1 Now test if cache is cleared: $ cd /path/tp/typo3-site/ $ php