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
3 answers

TYPO3: get path out of file reference in Extbase

i've created a Custom Content Element with Fluid and Extbase (TYPO3 6.1), in which you can define a picture. In the picture-settings i can set a img-link, which is targetting a file. In my Controller i can access this data…
Hayo
  • 240
  • 1
  • 2
  • 12
4
votes
2 answers

TYPO3 fluid array key increment by 1

In fluid template I am displaying items list {key}. myItem.name Here I need to display serial number for each item. for example, 1. myitem one 2. myitem two etc. But in my case I used…
4
votes
2 answers

Disable encoding warning for templates in Netbeans 7.2

I am frequently working with template files in Netbeans 7.2: In TYPO3, with HTML-based and Fluid templates; in OXID eSales, with Smarty templates. If a template file contains a charset variable like follows, Netbeans utters a warning each time I…
Mateng
  • 3,742
  • 5
  • 37
  • 64
4
votes
3 answers

Fluid content div with optional sidebar

I have a question that I haven't found addressed in the various CSS layout models I've looked at, so I thought I'd post it here. I'm working on a site that uses a basic fluid/fixed two-column layout. The content of the site is in the left div, and…
Radek
  • 355
  • 1
  • 4
  • 8
4
votes
5 answers

Create TYPO3 Fluid link for typolink fields generated by a link wizard

I regularly use the link wizard in my TCA. Its horrible to find out with conditions which kind of link I have to render in Fluid (page/email/external). Is there a solution for this or do I have to create my own ViewHelper?
Arek van Schaijk
  • 1,432
  • 11
  • 34
3
votes
1 answer

TYPO3: webp images are converted to png

I'm using a webp image in a default image content element. webp images are enabled: $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] .= ',webp'; But in frontend, a png is rendered, instead of a webp, when it's processed by…
Sven
  • 722
  • 1
  • 7
  • 25
3
votes
4 answers

CSS take height of absolutely positioned child

I've got a container that's set to a max-width:780px and height is undeclared. Inside the container, there's an image slideshow. Everything on the page is responsive, so as the width decreases, the image (who's width is set to 100%) adjust's the…
technopeasant
  • 7,809
  • 31
  • 91
  • 149
3
votes
1 answer

How to use constants in Fluid templates?

I'm using Typo3 version 10+ I created a "Site package extension" to make some nice templates and styles (header / footer / etc) I'm using constants like this (constants.typoscript): #cat=My website variables//a; type=string; label=Some id…
June
  • 41
  • 3
3
votes
1 answer

TYPO3 (Fluid): Generate FAL-SVG-Image as inline code

Is there a fluid pendant to the new TS option Feature: #82091 - Allow inline rendering in SVG content object or a workaround? The only solution i see(atm) is to write my own viewhelper or i am missed something?
ntiedt
  • 173
  • 3
  • 18
3
votes
3 answers

Display full name of logged in TYPO3 frontend user in Fluid

The task is pretty simple: I want to display the full name (first- and lastname) of the current TYPO3 frontend user in Fluid. But somehow, TYPO3 (version 9.5) or Fluid seems to cache data, so a logged in frontend user sometimes sees the name of…
derhansen
  • 5,585
  • 1
  • 19
  • 29
3
votes
5 answers

Fluid background image on browser resize

I want to achieve the fluid background image effect that you can see in this webpage: http://217.116.9.130/test2.html (taken from zara.com) If you resize your browser to the left the woman in the image goes left with your resizing. I've taken the…
ADM
  • 1,590
  • 11
  • 36
  • 54
3
votes
1 answer

TYPO3 error «action is not allowed by this plugin»

I'm trying to make an Ajax-call to my Controller. I placed a hidden link in my form like this: In my Javascript, I…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
3
votes
0 answers

Use tx_form in custom Extension

I want to use the EXT:form to include a form in my extension. In the detail-page is a link to the formAction. The recipients dependents on a dataset (detailView) I hope I got it right. I can create my own formular with my own factoryclass and render…
N1ck
  • 323
  • 1
  • 14
3
votes
2 answers

"Undeclared arguments passed to ViewHelper" Exception

After updating TYPO3, I get a TYPO3Fluid\Fluid\Core\ViewHelper\Exception "Undeclared arguments passed to ViewHelper ... Valid arguments are."
Sybille Peters
  • 2,832
  • 1
  • 27
  • 49
3
votes
2 answers

TYPO3 fluid: is it possible to write f:link.typolink inline?

I need something like this: Linktext but in inline syntax. Is this possible? Thanks!
lisardo
  • 1,322
  • 16
  • 31