Questions tagged [fluid]

Fluid is a an XML-based templating system for TYPO3. With Fluid, all the code for the view logic moves to the template - e.g. loops, if/else switches and similar.

Fluid is a an XML-based templating system for TYPO3. With Fluid, all the code for the view logic moves to the template - e.g. loops, if/else switches and similar.

The standalone version can be used out of the box and there are integrations for TYPO3 and Neos

It looks like this

// this
<f:count>{myArray}</f:count>

// or  
{myArray -> f:count()}

Official documentation: https://github.com/TYPO3Fluid/Fluid

Since 2017-06 there is also Fluid for whose syntax is not related to php-fluid but which aims to be close to .

1458 questions
3
votes
1 answer

how to construct this solr parameters with uri.typolink

how does it work if i want to construct following structure with Typo3's Fluid uri.typolink viewhelper: /de/suche/?tx_solr[q]=&tx_solr[filter][0]=result_type_filter:award this is the viewhelper and data should go inside additionaParams, if im not…
netzding
  • 772
  • 4
  • 21
3
votes
1 answer

Create arrays and objects with fluids f:variable

Is it possible to create an array or an object with f:variable in TYPO3 9.x? The example below does not work, because it treat the object as an string. {firstname:'Max', lastname:'Mustermann'} Update: This…
kimomat
  • 2,211
  • 23
  • 37
3
votes
5 answers

Why my DataProcessing\MenuProcessor don't show level-3 and level-4 for my page tree

I use Bootstrap_package v10 and Typo3 9, the menu processor doesn't show the level-3 and 4 for my pagetree. I'm using the original templates from bootstrap package, the code is below: 10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor 10 { …
Mohamed Masmoudi
  • 547
  • 1
  • 9
  • 23
3
votes
3 answers

Check TYPO3 link type in fluid

I want to render a typolink in fluid, but i need to check if it is a download file (t3://file?uid=1), a page link (t3://page?uid=1) or an external link (https://www.abc.de _blank). Is there a way or viewhelper to check the linktype in fluid? What i…
kimomat
  • 2,211
  • 23
  • 37
3
votes
1 answer

Get the image path in fluid

in my fluid template I create an image with Is there a way to get just the path of the image like "domain.com/path.jpg" ? Edit:…
Ted Logan
  • 404
  • 1
  • 4
  • 15
3
votes
1 answer

TYPO3 TCA value as a variable on Fluid

I have a base extension so i can version my website. That means i have not a controller or a repository on the extension. So what i want to do, is to create my own settings on existing elements. I was experimenting around with a text align values on…
Aristeidis Karavas
  • 1,891
  • 10
  • 29
3
votes
4 answers

Add, Rename or Remove Layout option in Powermail

In the powermail documentation it mentions about a field's Layout dropdown: Administrator can add, remove or rename some of the entries. How do you add a layout option to the dropdown? How do you specify what class that new option will add?
user500665
  • 1,220
  • 1
  • 12
  • 38
3
votes
1 answer

How do I call an entity method in a TYPO3 fluid template?

I have a template with a line like this: {product.features} where "features" is an attribute of the "product" data model. I would like to print the result if a method call on product…
t3o
  • 329
  • 1
  • 10
3
votes
1 answer

TYPO3: Data is not posting on select file larger than 1.5 KB to be uploaded

I need to upload files from the front in my plugin. I got the success with it, but then now I have an issue during uploading larger file than 1.5 KB. Whenever I select file larger than 1.5 KB, i get error: 1298012500: Required argument…
Sameer Bhayani
  • 231
  • 8
  • 15
3
votes
1 answer

Uncaught TypeError: 'download' is not a function

I have this button on my page, which points to the function download(): Download download(): function download(button) { console.info(button); return true; } After clicking the button I…
Black
  • 18,150
  • 39
  • 158
  • 271
3
votes
1 answer

ValveLinear Model Modelica Standard Library - Working Principle

I am implementing the ValveLinear model from the Modelica standard fluid library into a model of mine using Dymola. I have some questions regarding its parameters which I can hopefully clear up: The key parameters for this valve are as follows: …
3
votes
5 answers

TYPO3 pass Fluid variable value to the Javascript

In a fluid template I have a fluid variable which value I would like to use in my JavaScript code. I am using JavaScript inside of fluid template. My Code:
Denis Milosavljevic
  • 365
  • 4
  • 8
  • 17
3
votes
1 answer

Assign non persisted object to view using extbase

While trying to assign an object to a view in my controller action I get the following message because this object is not persisted: Could not serialize Domain Object Vendor\Extension\Domain\Model\Object. It is neither an Entity with identity…
Jonas
  • 349
  • 3
  • 21
3
votes
1 answer

Resize image in custom ViewHelper

I have a ViewHelper that processes some images. I have an image path to an original file. I need to resize this image. Is there a PHP code I can use in TYPO3 to do this? I tried this: $imgPath = 'img/path/from_database.jpg $imgConf =…
Alan
  • 1,322
  • 1
  • 21
  • 36
3
votes
3 answers

TYPO3 - Pass a variable from Fluid to a cObject

I'm using fluidcontent and I would like to render a plugin in a content-element. Therefore I created the following COA: form = COA form { 15 < tt_content.list.20.extname_form 15.settings.id = | } This object is getting rendered in the…