typo3

Parse an existing JSON string in fluid template?

丶灬走出姿态 提交于 2019-11-29 18:09:46
I have a JSON string with some data I want to render in a template. As Fluid arrays are notated in JSON too, I thought I might just take that JSON string and hand it over to fluid, telling it to treat it just like some other array and use it in the template. Thus gaining a lot of speed and losing overhead (don't have to split the JSON data up to save it in the DB, can template it easily in fluid). It wouldn't work, at least not how I tried it. <f:alias map="{item.jsonData}"> {fieldname} </f:alias> It - of course - complained it had received a string, not an array. Do I have to build a

TYPO3: How do I insert page content into template

╄→гoц情女王★ 提交于 2019-11-29 14:29:39
问题 I have some content that I want to appear on multiple pages of my TYPO3 site. I could just insert this into the template, but I also want that content to be editable in the Rich Text Editor. So I had the idea of creating a hidden page, but I don't know how to insert this content into a template. Does it require the select typoscript statement? Also, as a follow-up question, can I add something to say, only include pages that have this page id as their immediate parent in the page hierarchy.

TYPO3: How could I add css and js files via controller initialize action and page renderer?

一世执手 提交于 2019-11-29 12:36:13
I am using the new page renderer from TYPO3 8 on controller level to add extension specific css and js files via an initializeAction: public function initializeAction() { $extPath = ExtensionManagementUtility::siteRelPath( $this->request->getControllerExtensionKey() ); $extJs = $extPath . 'Resources/Public/Js/ext_booking_manager.min.js'; $extCss = $extPath . 'Resources/Public/Css/ext_booking_manager.css'; /** @var PageRenderer $pageRenderer */ $pageRenderer = $this->objectManager->get(PageRenderer::class); $pageRenderer->addCssFile($extCss); $pageRenderer->addJsFooterFile( $extJs, 'text

Typo3 Extbase Set and Get values from Session

此生再无相见时 提交于 2019-11-29 11:36:08
I am writing an extbase extension on typo3 v6.1 That extension suppose to do a bus ticket booking. Here what my plan is, user will select date and number of seats and submit the form. Here my plan to push the date and rate of the selected seat to session (Basket). And while making payment, I wanted to get that values from session and after payment I need to clear that particular session. So In short, How to Push and retrieve the values to and from the session in extbase. Any suggestions ? Thank you. freshp There are different ways. The simplest would be for writing in the session $GLOBALS[

What is the best usage of TypoScript in Fluid templates?

偶尔善良 提交于 2019-11-29 11:23:45
If I want to use TypoScript like menu generation in a Fluid template I have two possible ways: use the TypoScript to fill a variable for the template. doing it like this: page.10 = FLUIDTEMPLATE page.10 { templateName = index.html // ... define pathes ... variables { contentMain < styles.content.get mainMenu < temp.mainMenu : } } and in the template just use the variable: <div class="header"> <div class="logo">{logo->f:format.raw()}</div> <div class="main-menu">{mainMenu->f:format.raw()}</div> </div> the other way is the usage of the f:cObject ViewHelper to call a part of TypoScript. the

TYPO3 extbase & IRRE: add existing records with 'foreign_selector'

こ雲淡風輕ζ 提交于 2019-11-29 08:04:42
I "kickstarted" an extension with the extbase extension builder that contains some 1:1 and 1:n relations. It automatically set the field types to 'inline' and displayed a nice IRRE UI in the backend. But by default, there is no way to select an existing record, just create new ones. I found various explanations on how to achieve this with 'foreign_selector', but all of them very sketchy. The feature itself should be working, see https://forge.typo3.org/issues/43239 Can someone walk me through this or point to a working example in the TER? I could create a step-by-step tutorial from the example

TYPO3 / How to make repository from existing table fe_users?

随声附和 提交于 2019-11-29 07:41:10
I am creating a special BE module with Extbase and Fluid and I need a domain object which would be representing standard FE user. When I create new domain object called e.g. Feuser and save it, the extension builder creates special repository and also wants to create special table tx_myextkey_feuser in database. But this table already exists as fe_users . Is possible to tell typo3 that the repository for Feuser objects already exists (as fe_users table) and that typo3 should use the existing one? How can I do that? I need it because the extension (including this BE module) needs to have every

TYPO3: how to supress deprecated warnings?

北城以北 提交于 2019-11-29 07:32:13
I tried modifying the php.ini file (error_reporting = E_ALL & ~E_DEPRECATED), but with no result. There's an older TYPO3 project which I would like to examine, and all these warnings are really annoying.. Thanks in advance. I'm not sure if this will work on your version of Typo3 but try setting the following options in the typo3conf/localconf.php or via the Install Tool. $TYPO3_CONF_VARS['SYS']['displayErrors'] = '0'; // or '-1' to see other errors $TYPO3_CONF_VARS['SYS']['errorHandlerErrors'] = 22519; // E_ALL ^ E_DEPRECATED ^ E_NOTICE (everything except deprecated-msgs and notices) $TYPO3

TYPO3 6.2 typo3_src should be a link

别来无恙 提交于 2019-11-29 05:11:07
I wanna setup a TYPO3 6.2 Installation on MAMP PRO but when I start I get the error: /typo3_src should be a link, but it does not exist Links cannot be fixed by this system So what to do now? Structure is: Application/MAMP/htdocs/typo3/ Any suggestions? You have to create symlinks manually, checklist: Open the terminal Move downloaded typo3_src-6.2.4.zip to host's root mv ~/Downloads/typo3_src-6.2.4.zip /Application/MAMP/htdocs/typo3/ Go to destination folder: cd /Application/MAMP/htdocs/typo3/ Still in this location unzip downloaded package (you can remove zip file after that) unzip typo3_src

WinHTTP VBA subsequent request cannot use the previous login credentials?

a 夏天 提交于 2019-11-29 05:11:05
I'm using WinHTTP in Access 2007 VBA to fetch some list of items requiring a cookie login credential account . First I login through https://www.example.com/login.php with this: Dim strCookie As String, strResponse As String, _ strUrl As String ' Dim xobj As Object ' Set xobj = New WinHttp.WinHttpRequest ' strUrl = "https://www.example.com/login.php" xobj.Open "POST", strUrl, False xobj.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" xobj.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded" xobj.Send "username=johndoe2&password=mypassword" '