Project

General

Profile

Actions

Feature #90082

closed

Option to change CE template in the backend via dropdown

Added by David Menzel almost 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2020-01-10
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
content element, template layout
Complexity:
Sprint Focus:

Description

Hi,

I wanted to change the layout of the standard content element Upload.html (in here https://github.com/TYPO3/TYPO3.CMS/tree/master/typo3/sysext/fluid_styled_content/Resources/Private/Templates) and that is possible by copy&paste the file into the own extension and then change the fluid code. However, this will change the Default layout so this change affects all content elements where the Upload.html file is used. Maybe I want 3 different layouts for the Upload.html and 2 different layouts for Table.html. That is currently only possible by using a condition inside the template file where I can check for the uid of the content element and then change the HTML/fluid code.

In extensions like EXT:news or EXT:sf_event_mgt you can add multiple template to change the appearence in the frontend. A simple change in the backend dropdown "Template-Layout" changes the appearence in the frontend. No editing of template files is necessary.

It would be good to have the same option already in the core for standard content elements as well.

It should be possible to define/add multiple layouts for each content element via Typoscript so that only templates for the Upload.html will be shown in the associated options. Bonus: maybe it's possible to use this feature for custom content elements like content elements created with EXT:mask.

Feature request for the core: A "template-layout" dropdown in the backend options of each content element.

best regards


Files

template_layout.jpg (138 KB) template_layout.jpg Template Layout David Menzel, 2020-01-10 12:02
Actions

Also available in: Atom PDF