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
4
votes
2 answers

How to compare a string with a variable in TYPO3 Fluid

I would like to do a simple comparisons, such as the equivalent of: if ($somevar === 'somestring') Now, I have found some examples where this is done like this: ... There are a number of places in the…
user9073987
4
votes
2 answers

How to access Page's Resources files in Fluid Typo3

Page's Resources Tab I have been trying to access these files but with no luck. Any help is appreciated.
Santiago Degetau
  • 356
  • 4
  • 14
4
votes
7 answers

Algorithm for modeling expanding gases on a 2D grid

I have a simple program, at it's heart is a two dimensional array of floats, supposedly representing gas concentrations, I have been trying to come up with a simple algorithm that will model the gas expanding outwards, like a cloud, eventually…
RichardBennet
4
votes
2 answers

HTML in language files

I made custom validation errors for an extension. Now I want to add an HTML link to an error message. tried to put HTML in language files (locallang.xlf) but it doesn't work. Is there a way around this ?
user6800816
  • 503
  • 7
  • 26
4
votes
1 answer

How do I make "" a mandatory field (required)?

Users are required to pick an option from this select: The fluid select element has no required or minItems-Attribute. I don't want to check for…
digijay
  • 1,329
  • 4
  • 15
  • 25
4
votes
2 answers

Typo3 Fluid: elseif inline notation

Is there an inline notation for the following example? Value is 1 Value is 2 Thanks for your help
Renato Morell
  • 53
  • 1
  • 8
4
votes
1 answer

TYPO3: Count up inside Fluid

I'm currently trying to build a carousel with bootstrap in the frontend. Generating the slides works great.
Norman
  • 785
  • 7
  • 27
4
votes
1 answer

How to access variable keys in an associative array in fluid?

I assign an associative array values to my view in the action controller. {values} outputs the following, which means, the data is in the view. array (3 items) 63 => 158 (integer) 49 => 0 (integer) 164 => 0…
Martin
  • 1,889
  • 3
  • 20
  • 25
4
votes
3 answers

Inject GET parameter to target URL of a button, on click

I have multiple buttons with the class myButton. Each button has a value which is send to a server on click. The target URL of the button does look like this: http://mysite/test/test.html?cid=15 After I click on the button, the following GET…
Black
  • 18,150
  • 39
  • 158
  • 271
4
votes
2 answers

Typo3: Flux & DisplayCond

I have the following Flux Template:
Daniel Pomrehn
  • 791
  • 3
  • 8
  • 23
4
votes
3 answers

Flexform in typo3 7.6.2 not working

I have created a extension using extension builder in typo3 7.6.2 version. Now I would like to add flexform to extension 'Products' for detail page PID. But I tried my best to integrate flexform but it did not work. Here is my code - In…
vids1229
  • 393
  • 1
  • 3
  • 12
4
votes
1 answer

Display Extbase FileReference with Fluid

In an extbase extension, I have a FileReference Object. It was created with extension_builder originally. From The Model: /** * apprenticeshipDocument * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference */ protected $apprenticeshipDocument =…
Urs
  • 4,984
  • 7
  • 54
  • 116
4
votes
2 answers

Add custom page configuration field in TYPO3

Please help, I created an extension with the Builder Extension. In the extension I included a simple fluid page template. Then I added a custom page setup field as described in this post. (1.add DB-Field in ext_tables.sql; 2. add TCA definition in…
mcm
  • 131
  • 1
  • 7
4
votes
3 answers

How to disable automated encoding of special characters in fluid partials (TYPO3)

Should be simple enough. I'm trying to add an input field to a fluid partial in the extension "yag" (yet another gallery). Input: Output: <input id="live-filter" type="text"…
Florian Rachor
  • 1,574
  • 14
  • 31
4
votes
4 answers

In TYPO3 Fluid, how do I access a variable from inside a foreach loop?

I am building a navigation with the VHS Menu ViewHelper. Below is the entire code. My question is probably very basic fluid though. Inside a scope, how do I access a variable that exists outside that scope - or how do I pass it into that…
Urs
  • 4,984
  • 7
  • 54
  • 116