Project

General

Profile

Actions

Bug #71490

closed

fluid-styled-content does not render Layout field into HTML output

Added by Jörg Wagner over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Fluid Styled Content
Target version:
-
Start date:
2015-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

The Layout field is still available in FSC based CEs, but it is not rendered into the HTML output anymore.

I can imagine that this was a deliberate decision with the intention that Layout should be used in the future mainly to control rendering right within the fluid templates of the FSC CEs (e.g. for conditional rendering).
But: It would not hurt at all to render out a layout-N class whenever the Layout dropdown is set to something other than "Normal". This would allow for basic and painless CSS based layout changes as were possible with CSC CEs.

The changes to implement this would be minimal:
Change all occurences of...

<div id="c{data.uid}">

...within the FSC template files to...
<div id="c{data.uid}" class="layout-{data.layout}">

This would also render out the default setting "Normal" as class="layout-0".

If this is unwanted (I would not see why), the 0-case can be eliminated with an additional condition:

<div id="c{data.uid}"<f:if condition="{data.layout}"> class="layout-{data.layout}"</f:if>>

PS:
All this being said I am waiting for the day where all TYPO3 CEs will support a multiselect field where each selection is rendered out as a separate class name. ;D


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #71484: Output of layout field in fluid_styled_content templatesClosedMathias Schreiber2015-11-11

Actions
Actions #1

Updated by Mathias Schreiber over 8 years ago

  • Status changed from New to Closed

dupe

Actions

Also available in: Atom PDF