extbase

Typo3 V6: How to create a content element container? (without TV)

寵の児 提交于 2019-12-18 11:31:51
问题 For a project I'm using Typo3 v6.0. I'm looking to create nested content elements, or a content element container. I want to be able to create an inline two-column layout without using a specific template for it. I'm looking to do this without the use of templavoila. Extensions I have tried are gridelements , kb_nescefe , bs_fce , multicolumn but these do not work because they are not compatible with Typo3 V6. I'm aiming for an end result like the attached image. Where the inline two-column

RealURL: Remove Controller and Action from URL

你离开我真会死。 提交于 2019-12-17 16:48:12
问题 I have an extension with a list and show action. Currently this extension can appear on multiple pages: /page-1/ /page-2/subpage/ I have configured realurl like that: $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array ( 'encodeSpURL_postProc' => array('user_encodeSpURL_postProc'), 'decodeSpURL_preProc' => array('user_decodeSpURL_preProc'), '_DEFAULT' => array ( … 'postVarSets' => array( '_DEFAULT' => array( 'controller' => array( array( 'GETvar' => 'tx_extension_plugin[controller]',

Extbase - get created sql from query

我的未来我决定 提交于 2019-12-17 09:56:23
问题 i want to get some database tables from my typo3 extensions. The Extension is based on extbase. The query always returns nothing but the data exists I've tried this: $query = $this->createQuery(); $query->statement('SELECT * FROM `my_table` WHERE field = ? ORDER BY date DESC LIMIT 1', array($condition)); $results = $query->execute(); and this: $query = $this->createQuery(); $query->matching($query->equals('field', $condition)); $query->setOrderings(array('date' => Tx_Extbase_Persistence

findAll on non object in extbase

大兔子大兔子 提交于 2019-12-13 07:40:39
问题 I just created an extension in typo3 4.5 with one model (product). I created the "productRepository" then injected it in the ProductController but I still get the Call to a member function findAll() on a non-object here is how the ProductController looks like : /** * @var Tx_PiProductDetail_Domain_Repository_ProductRepository */ protected $productRepository; /** * @param Tx_PiProductDetail_Domain_Repository_ProductRepository $productRepository * @return void */ public function

in() method - Typo3 - queryInterface

删除回忆录丶 提交于 2019-12-13 04:33:00
问题 if you use the QueryInterface from Typo3 or Flow3 you can look up in the QueryInterface Extbase Dokumentation for all functions you can use. I already created some ANDs, ORs and LogicalNOTs in Flow3 and they work great. My problem is the in() function. Let's say I have a "task" object and every task has one "status" object (over Many-To-One). Now I want to have all tasks having a status with the 'show' attribute on 'false'. That's what doesn't work: $query->in('status',$this->statusRepository

TYPO3 RouteEnhancer with custom ValueMapper

[亡魂溺海] 提交于 2019-12-13 03:49:22
问题 I'm currenty trying to implement a custom RouteEnhancer. Is it just me, or is the documentation horribly incomplete again? I haven't been able to find any information about custom enhancers in TYPO3 other than a meager paragraph in the changelog entry, where can I get more information about these? I can't event find them in the API documentation. The relevant part of my domain model in my extension is Termin and Veranstaltung . Theres a n to 1 relation type from termin->veranstaltung . My

Typo3 Error: The ColumnMap for property is missing (m:n)

允我心安 提交于 2019-12-13 03:46:51
问题 I am having the same issue that was posted here: Typo3 Error: The ColumnMap for property is missing ...except I am using a m:n relational table. Unfortunately my error continues: I'm using Typo3 version 8.7.19 and I'm developing an extention. The two tables "mitarbeiter" and "zusatzlich" are connectet with a m:n relation. I try to search for a field in the table "zusatzlich" in the repository of "mitarbeiter". The relation of both is necessary. If I try to execute the following query I get

How to access a method and pass an argument within the template?

痞子三分冷 提交于 2019-12-13 02:59:19
问题 In my template I want check whether an entity has a relation to another one. Meaning one object is in an attached Object Storage of another one. In the controller I can simply call: if ($product->getCategory()->offsetExists($category) { print 'In category ' . $category->getName(); } But I can't figure out the correct syntax in the template. I tried those without luck (both evaluate to true everytime): <f:if condition="{product.category.offsetExists(category)}">true</f:if> <f:if condition="

TYPO3 - Add flexform to my own extension

白昼怎懂夜的黑 提交于 2019-12-13 02:23:20
问题 I am building my own extension. I have found this page about adding Flexform to the Extension https://gist.github.com/alrnz/c0f00b196d378f5b9150 And in my ext_tables.php i have this: \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( $_EXTKEY, 'Xlsxtotables', 'XLSX to tables' ); // Include flex forms $pluginSignature = str_replace('_', '', $_EXTKEY) . '_' . 'xlsxtotables'; // from registerPlugin(...) $TCA['tt_content']['types']['list']['subtypes_addlist'] [$pluginSignature] = 'pi

TYPO3 upload multiple files in a frontend form

做~自己de王妃 提交于 2019-12-12 21:12:49
问题 I'm using the https://github.com/helhum/upload_example to create a form that allow file upload in frontend. It works fine with single file but I would need to upload multiple files. So here is my form field : <mr:form.upload property="files" id="publication-files-{contentUid}" class="file" data="{loading-text: '{f:translate(key: \'uploading\', extensionName: extKey)}', max-file-size: maxFileSize}" additionalAttributes="{autocomplete: 'off', accept: settings.allowedFiles, multiple: 'multiple'}