fluid

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

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

Is there a Fluid viewhelper to truncate an URL? If not, how do I make one?

房东的猫 提交于 2019-12-20 06:09:33
问题 In TYPO3's Fluid or in Fedext/vhs, is there a viewhelper that can convert http://www.stackoverflow.com/questions/ask into www.stackoverflow.com ? PS: that's the goal: <f:format.raw><f:link.external uri="{item.link}">{item.just-display-the-domain}</f:link.external></f:format.raw> EDIT (adapting the question to the answer I got): If I have to build a custom view helper, how do I proceed? 回答1: I really doubt if there would be any sensible reason for adding this kind of VH into the core, de facto

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

iPhone fluid simulation

混江龙づ霸主 提交于 2019-12-17 22:37:23
问题 Somebody know fluid engine for iphone?I need water and gases simulation. 回答1: Simulating fluids is a tremendous challenge for modern desktop computers, so I would not expect the greatest performance when trying to get this working on a mobile device. Running full Navier-Stokes calculations on the iPhone is probably going to chug pretty badly. However, in the past I was able to perform 2-D fluid modeling simulations on limited hardware using lattice gas automata. With lattice gas automata, you

box-shadow and 100% Fluid Width Issue

僤鯓⒐⒋嵵緔 提交于 2019-12-13 13:05:58
问题 I've been polishing up a page I built over the past day or two and have run into an issue after using box-shadow - I was hoping someone might shed some light on an easy way to fix this. The Setup: I have a div that has a few properties, including width, max-width, and box-shadow. #mydiv { width:100%; max-width:1200px; -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); } The Problem: The "box-shadow"

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 get category uid at FLUID template (sys_category)

雨燕双飞 提交于 2019-12-13 01:04:23
问题 I try to show my category uid or name as a class="category.uid" at my FLUID template. If I try <f:debug>{data}</f:debug> I'll see there are an output like: categories => '1' (1 chars) But how can I write the category-uid or -name into my FLUID/HTML, similar like this: <div id="container" class="{data.nav_title}"> <!-- I need the categories --> <div id="container" class="{categories.uid}"> THanks for your help. EDIT: some screenshots The info is in table sys_category title, uid, pid .. `{data}

Pass content from TypoScript to fluid template in TYPO3 7.6

≡放荡痞女 提交于 2019-12-12 20:18:50
问题 I would like to read content via TypoScript and render it through a custom Fluid template. Without css_styled_content or fluid_styled_content. temp.test = CONTENT temp.test { table = tt_content select.languageField = 1 select.selectFields = bodytext,image,header,header_link select.where = colPos = 1 renderObj = FLUIDTEMPLATE renderObj { file = path/to/Teaser.html } } This works with strings, say <f:debug>{data.header}</f:debug> But not with <f:debug>{data.image}</f:debug> returning only the