Project

General

Profile

Actions

Task #75333

closed

FSC "bullets" - select bullets type using partials and not f:switch

Added by Riccardo De Contardi over 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Could have
Assignee:
Category:
Frontend
Target version:
Start date:
2016-03-31
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Sprint Focus:
Stabilization Sprint

Description

I've noticed that on sysext/fluid_styled_content/Resources/Private/Templates/Bullets.html the various bullets types are chosen using an <f.switch>.
I am wondering if it could be better to use the same system used for Menu, that is using the values of the field "bullets_type" to select different partials, this way:

the template would become:

<f:section name="content">
    <f:render partial="Bullets/Type-{data.bullets_type}" arguments="{_all}" />
</f:section>

and then Type-0.html, Type-1.html and Type-2.html partials must be created.

I hope it is clear enough.

Thank you.

Actions

Also available in: Atom PDF