typo3-6.2.x

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

Additional page property fields in TYPO3 CMS 6.2

≡放荡痞女 提交于 2019-12-12 09:19:32
问题 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. 回答1: 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

typo3 remove session data of fe-user

℡╲_俬逩灬. 提交于 2019-12-11 23:17:10
问题 Hi I have an typo3 extension that stores data in session. After my actions are finished I want to remove the session data. I tried this: $GLOBALS['TSFE']->fe_user->removeSessionData(); But this does not work. What is my fail? Thanks in advance UPDATE if ( is_null($GLOBALS["TSFE"]->fe_user->getKey("ses", "Step1")) ) { $this->redirect('noProductFound'); } $arguments = $this->request->getArguments(); $reloadPage = new \TYPO3\ShopExtension\Controller\ShopStep(); $product = $arguments['product'];

TYPO3 indexed_search does not index the page

自闭症网瘾萝莉.ら 提交于 2019-12-11 17:31:53
问题 In my TYPO3 6.2.31 page I try to get indexed_search working. In Backend it looks good, Search Page form is implemented as well. Problem is the page will not get indexed. Any ideas? Update in template I have this: <!-- main content anfang --> <main role="main" class="maininhalt"> <!--TYPO3SEARCH_begin--> ###CONTENTMAIN### <!--TYPO3SEARCH_end--> </main> <!-- main content ende --> and in typoscript setup: page.config.index_enable = 1 回答1: After some Teamviewer investigations we found the problem

How do I query a backend layout which is set by parent page?

痞子三分冷 提交于 2019-12-11 16:25:26
问题 Currently I am using the following conditional TypoScript to check which backend layout is set: [globalVar = TSFE:page|backend_layout = 2] // some typoscript [global] In addition I have a site tree structure like this: - rootPage1 - page1 - page2 - page3 - rootPage2 - page1 - page2 Now I want to use a different backend layout for rootPage2 and all childs of this page. So I have configured this page as follows: This works as expected and set a different backend layout for rootPage2 and all his

TYPO3 Extension Builder Foreign Key

試著忘記壹切 提交于 2019-12-11 07:12:39
问题 Why does the TYPO3 Extension Builder don't generate Foreign keys? I've set some relations between the models, but in SQL Code there are noe FKs only colums for the Value of the key. Does anyone can help me? 回答1: Cite from Kartsen Dambekalns It is a half-conscious design decision. Just look up the date when foreign key constraints where introduced in MySQL, and compare to when TYPO3 was 'born'. Of course it would be great to add such references, especially since MySQL can always handle themm,

TYPO3 does not cache the page

荒凉一梦 提交于 2019-12-11 07:07:01
问题 My TYPO3 6.2.31 page has everywhere enabled caching ... But when I call the Page and look in admin panel .. My typoscript looks like this: config { doctype = html5 renderCharset = utf-8 metaCharset = utf-8 prefixLocalAnchors = all simulateStaticDocuments = 0 tx_realurl_enable = 1 absRefPrefix = / #CACHE AND INDEX no_cache = 0 no_search = 0 index_enable = 1 index_externals = 1 what could be the problem for not caching my site? 回答1: prefixLocalAnchors causes the page to be not cached! Set

Insert plugin into a fluid template?

女生的网名这么多〃 提交于 2019-12-11 07:04:20
问题 The extension ke_search has a search field plugin that I want to insert into my fluidtemplate and show on every page. I am very new in this and don't know how to start. Any help is appreciated. 回答1: You can assign the Plugin to an typoscript lib: lib.searchMask < tt_content.list.20.your_plugin (Please search the location of the plugin in the typoscript browser) In your fluid you can use f:cObject to include it: <f:cObject typoscriptObjectPath="lib.searchMask" /> 回答2: In general you have three

Parameters to action lost when validation error occurs

自闭症网瘾萝莉.ら 提交于 2019-12-11 03:54:49
问题 I have two actions, newAction and createAction . Both get the same parameters, which are plain values, not objects. Their implementations looks similar to this: /** * Renders a form with the createAction as action="". * * @param string $value1 * @param boolean $value2 * * @ignorevalidation $value1 * @ignorevalidation $value2 */ public function newAction($value1 = NULL, $value2 = NULL) { $this->view->assignMultiple([ 'value1' => $value1, 'value2' => $value2, ]); } /** * @param string $value1 *

How to realize one page template in TYPO3 with custom elements for sections?

会有一股神秘感。 提交于 2019-12-11 00:26:30
问题 This is the template I want to use with TYPO3: http://www.shegy.nazwa.pl/themeforest/hype/ios/solid/ I want to give the user the possibility to add or remove sections like you see on the screenshots as many as they want. My first idea to solve this, is to create content elements. I think tt_content is not enough for this. It would be neccessary to create an own table for each sections. Is there another way? It would be very great to give the user the possibility to add content elments inside