Project

General

Profile

Actions

Feature #37356

closed

TS templates for content elements

Added by Urs Braem over 12 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-05-21
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

As discussed here http://groups.google.com/group/typo3-english/browse_thread/thread/e1913fbed44a0079/8866fc9f3cc6f660?q&pli=1, I would like to request the following feature:

Add a possibility to define specific TS for each content element in the backend (admin only).

Then add a selector field for editors to choose one from specific TS templates that would be applied to the current Content element only.

This would be a replacement for the - as I think, "workaroundish" - use of header_layout, section_frame or layout fields to add custom TS to a content element.

Instead of this:

tt_content.textpic.stdWrap.outerWrap.cObject=CASE
tt_content.textpic.stdWrap.outerWrap.cObject{
key.field = header_layout
default=TEXT
default.value=|
1=TEXT
1.value=<aside class="kasten">|</aside>
2=TEXT
2.value=<div class="narrow">|</div>
}

imgWidth=CASE
imgWidth{
key.field = header_layout
default=TEXT
default.value=520
1=TEXT
1.value=260
2=TEXT
2.value=160
}
tt_content.image.20.maxWInText.cObject < imgWidth
tt_content.image.20.maxW.cObject < imgWidth

it would be much nicer if the admin could just prepare some TS snippets like:

tt_content.textpic.stdWrap.outerWrap.cObject.value=<aside class="kasten">|</aside>
tt_content.image.20.maxWInText.value=260
tt_content.image.20.maxW.value = 260

and:

tt_content.textpic.stdWrap.outerWrap.cObject.value=<div class="narrow">|</div>
tt_content.image.20.maxWInText.value=160
tt_content.image.20.maxW.value = 160

which could be then assigned by the editor to the desired CEs in the Backend.

Actions #1

Updated by Philipp Gampe over 12 years ago

So you actually want to have TS records and then being able to select a TS record for a content element? AFAIK their is an extension doing this.

Actions #2

Updated by Urs Braem over 12 years ago

There are several extensions that add typoscript as a new record / content element. like tscobj or ts_select.

But what I mean is that you can add the ts to an existing record - say a textpic element and redefine the (csc) rendering for that element (so that e.g. it would become a slideshow).
I would also have expected that there would be an extension for that, but it seems not.

Actions #3

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 6.0.0 to 7.2 (Frontend)
Actions #4

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #5

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #6

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #7

Updated by Benni Mack about 8 years ago

  • Status changed from New to Rejected

Although this is a nice feature, we experienced in the past, that it is quite dangerous to do so and it's not a best practice at all for editors to so (admins only). So, if someone needs that feature, put it in an extension, but it won't go in the core, sorry.

If you have any questions, feel free to approach me.

Actions #8

Updated by Urs Braem about 8 years ago

Fine by me! Nowadays, I'd use EXT:mask for that use case and make a condition in the fluid template to, e.g., apply a special icon or css class to a box. Thanks for the work!

Actions

Also available in: Atom PDF