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
7
votes
9 answers

How to escape curly bracket "{" in TYPO3 Fluid template?

I've a mixed HTML / JS template, when I'm working with JS arrays, Fluid tries to make autosubstitutions. Is there a way to escape curly brackets in Fluid template ? UPD : Actual working syntax to escape JS parts is :
Fedir RYKHTIK
  • 9,844
  • 6
  • 58
  • 68
6
votes
1 answer

Real-time fluid simulation techniques

What techniques are used for the real-time simulation of fluids such as water, for example in videogames? In particular, I am looking for a project-idea for an (unfortunately rather short) physics project at Uni, so the simpler the better (if there…
Ben
  • 15,938
  • 19
  • 92
  • 138
6
votes
1 answer

What is the difference between render() and renderStatic() and what should be used when writing a ViewHelper in TYPO3

There are several examples for writing a custom ViewHelper and different ways to do things. I have seen examples with render() and with renderStatic (for example in Developing a Custom ViewHelper). In 24 Fluid Tips there is an explanation, but I…
user9073987
6
votes
1 answer

Fluid debugging - output all variables

I try to output all variables from my view like this: {_all} But I only get this output: I used to get an array which I can open and inspect deeper. Why does it render like this?
Black
  • 18,150
  • 39
  • 158
  • 271
6
votes
6 answers

Check if pid of current page is X

How can I check if a page has a specific ID, and if true output a text? I thought about something like this (pseudocode):

I am Page 78

Black
  • 18,150
  • 39
  • 158
  • 271
6
votes
1 answer

TYPO3 Fluid - How To Make f:form.textarea Mandatory

I have text fields like this that will turn red and won't let you submit the form automatically if I put the property required on "1":
Cold_Class
  • 3,214
  • 4
  • 39
  • 82
6
votes
2 answers

Fluid width container to hug floats

I have a container (image gallery) that is max-width:80%. Inside, images are floated left forming columns and rows. As you shrink/expand the browser window, more or fewer images fit into each row and there is typically a "remainder" at the end of…
Vlad
  • 612
  • 1
  • 7
  • 13
5
votes
3 answers

website using 960.gs what css rule is responsible for divs filling 100% screen width

Hi I am trying to learn CSS and have been looking at the source of websites to learn how it works in practice. I came across the 960 grid system the other day, and found a really beautiful site design that is using the 960gs framework >> OneHub At…
LearningCSS
5
votes
2 answers

TYPO3: Frontend Plugin Filter / Search

I've got a problem I can't find any documentation or solution for. I've created a TYPO3 extension with a List and Detail View, everything works fine. Now I want to add some Input Fields above the List view, to let Site-Visitors Filter the List…
Denis49
  • 71
  • 8
5
votes
4 answers

TYPO3 Database migration from fluidcontent to flux

I want to switch from fluidcontent to flux by removing the obsolete fluidcontent. As mentioned in here https://github.com/FluidTYPO3/fluidcontent/issues/424, you have to change the CType for all fluidcontent objects in the tt_content table from…
kimomat
  • 2,211
  • 23
  • 37
5
votes
5 answers

TYPO3: repository->findAll() not working

I am building an extension with a backend module. When I call the findAll() method it returns a "QueryResult" object. I tried to retrieve objects with findByUid() and it does work. I set the storage pid in the…
user6800816
  • 503
  • 7
  • 26
5
votes
3 answers

TYPO3: No template was found. View could not be resolved for action

I'm experimenting a bit with TYPO3 backend modules and I'm trying to get a view when I click my module in the left menu in the backend. However when I click this I get the following message: Sorry, the requested view was not found. The technical…
Woeler
  • 227
  • 4
  • 14
5
votes
5 answers

Fluid - condition to check if value is NULL not working

I try to output my element only if the value of the property fileEn is NULL (fileEn => NULL) {file} However this is also showing me elements where fileEn is not…
Black
  • 18,150
  • 39
  • 158
  • 271
5
votes
2 answers

What is the best usage of TypoScript in Fluid templates?

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 // ...…
Bernd Wilke πφ
  • 10,390
  • 1
  • 19
  • 38
5
votes
1 answer

How to add external JavaScript and CSS into backend module in TYPO3

I am working with TYPO3 CMS. I would like to add external JavaScript and CSS into a backend module, but I am actually not sure how to add these. Could you guide me how to implement that?
KOCH DOEUN
  • 137
  • 1
  • 7
1 2
3
97 98