typo3

How can I get the category object in Fluid of Typo3 Content Element Pictures?

陌路散爱 提交于 2019-12-21 20:35:21
问题 after a long time of Google, I can get the categories of FAL Objects in Typo3 7.6 Fluid. But I can only return a String. I want to get an object like {data}. What I do: TypoScript lib.category = CONTENT lib.category { table=sys_category wrap=| select { pidInList = root,0,1 recursive = 99 max=10 selectFields=sys_category.title,sys_category.uid join = sys_category_record_mm on sys_category_record_mm.uid_local = sys_category.uid join sys_file_metadata on sys_file_metadata.uid = sys_category

How can I trigger a download with typo3/extbase?

时间秒杀一切 提交于 2019-12-21 20:11:05
问题 I'm using Typo3 with extbase and fluid. I have a Controller with an action called downloadAction() . After calling the action the system tries to render the download-template (but I just want to start a download). public function downloadAction($id) { // create file // send header // dump file // exit } How can I dump the created download-File and send a download header instead of the normal render process? What is the best way? Thanks 回答1: I did this in a project some months ago, it's pretty

Set TYPO3 extbase storagePageIds / storagePid to current

烂漫一生 提交于 2019-12-21 19:28:35
问题 I am using the TYPO3 extension feupload, which relies on extbase. This is my first contact with extbase. But the question is about extbase in general. I expect TYPO3 to include the usual "IN (current-page)" pid check by default in queries, unless told otherwise - but in extbase that seems to be different. Or at least in my case, it's not working. In the extension, there is a constants / setup setting, where the storagePid can be set. This works. But we don't want to adapt that parameter

TYPO3 realURL Autoconf to manual conf

余生长醉 提交于 2019-12-21 13:00:00
问题 I have a TYPO3 site that's been running with realURLs autoconf for years. The pattern is very simple: Domain/language/pid e.g. example.com/d/6 Now I have to make an addition to the realURL config, but I'm not sure on how to reproduce the setup by autoconf in a manual configuration file (we don't want to change the URLs) How's that done? I've tried outputting the serialized autoconf values via var_export(), but no work. Or: how can I create the URL pattern above in realurl_conf? Thanks! Urs

TYPO3 realURL Autoconf to manual conf

倖福魔咒の 提交于 2019-12-21 12:59:07
问题 I have a TYPO3 site that's been running with realURLs autoconf for years. The pattern is very simple: Domain/language/pid e.g. example.com/d/6 Now I have to make an addition to the realURL config, but I'm not sure on how to reproduce the setup by autoconf in a manual configuration file (we don't want to change the URLs) How's that done? I've tried outputting the serialized autoconf values via var_export(), but no work. Or: how can I create the URL pattern above in realurl_conf? Thanks! Urs

Typo3 eID, how to access config

走远了吗. 提交于 2019-12-21 12:28:14
问题 I've just created an eID in Typo3. I can't figure out how to access the config data for my plugin from the Typo3 instance. I've tried the code from the link but it doesn't want to work. I keep getting an exception "No TypoScript template found! " on the call " $TSFE->getConfigArray(); " http://lists.typo3.org/pipermail/typo3-dev/2006-December/021392.html Any ideas? Thanks. 回答1: In eID mode, only a small part of the regular TYPO3 frontend is loaded. Unfortunately TypoScript is not loaded. To

How to access properties of a FileReference Object in fluid

自古美人都是妖i 提交于 2019-12-21 09:32:53
问题 Below you see the debug for an object of type FileReference in fluid. In fluid the debug looks like this: <f:debug>{fileReference}</f:debug> The question is how do I access the properties highlighted in green, being width , height , and hovertext . The original file is an image, so width & height are default T3 properties, hovertext has been added by my extension with it's own getter/setter. I tried the following: {fileReference.width} {fileReference.mergedProperties.width} {fileReference

How do I include or autoload external libraries in a TYPO3 Extbase Extension? + Dependecy Injection?

你离开我真会死。 提交于 2019-12-21 05:27:24
问题 I'm developing a TYPO3 4.6 Extension with Extbase 1.4 and im trying to include an external library. The library, in my case the facebook PHP SDK, is under $_EXTKEY/Resources/PHP/facebook-php-sdk/facebook.php . I would like the library to autoload and automatically inject (Dependecy Injection) where I need it. Some comments I found online suggest that one should include libraries with require_once(): http://forge.typo3.org/issues/33142 if it's just a tiny helper library, it's intended to be

Including CSS File in TYPO3 Backend?

廉价感情. 提交于 2019-12-21 05:21:50
问题 I am trying to include my cascading style sheet into my TYPO3 extension. I created the extension with "kickstarter". This is the way I tried to include it: $this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath('myExt') . 'res/css/my_stylesheet.css'); I added that line at the end of the main() method. So what am I doing wrong? The path including the file does definately exist. Thank you. 回答1: And if You would like to include CSS file in other module than Yours, without to modify

TYPO3 8.7 can not override Fluid Styled Content templates

只愿长相守 提交于 2019-12-21 04:42:17
问题 I've tried to override the Fluid Styled Content elements but it doesn't work at all in latest TYPO3 version 8.7.0. I've got a template extension (key: biv_main) in which I add my overriding template pathes: lib { fluidContent { templateRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Templates/ } partialRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Partials/ } layoutRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled