[TYPO3-content-rendering] RFC: Let's discuss the "default frame" in 4.3
Tyler Kraft
tyler.kraft at netefficiency.co.uk
Thu Jun 11 18:32:43 CEST 2009
Hi
I also objected to this a few weeks back.
Mainly my objecting about this was that I think it's unnecessary mark
up, and I can see it messing with some template html and css that is
used to achieve some layouts.
It's more complicated though, as the new frame wrapping also handles the
space before and after the content item, and the id tag that allows a
user to link to a specific content item.
The response I got to my objection was that it takes one line of TS to
remove this wrapping. But in my opinion that is ill conceived as then
there is no way to apply spacing above or below, or the content id tag,
with out having to rewrite more than one line of TS.
Still, as someone once said, "you can't please all the people all the
time" so I just accepted it as in MOST cases it won't cause much of an
issue for me.
I guess to solve this for every instance would be to have no defualt
wrapping, but prepend a <a id=""> before the content item (like was
previously done) and then using some prepend and append place empty divs
before or after to achieve the spacing.
Just my thoughts
Marcus 'biesior' Biesioroff wrote:
> ellou' List
>
> According to this bug [1] (in fact it's not a bug) I realized, that
> there are some changes in section_frame behaviour. Now, if type of frame
> is not selected it is considered as a frame with csc-default class:
>
> [1] http://bugs.typo3.org/view.php?id=11316
>
> The problem is that now "no frame" state doesn't exists at all, cause
> every positions wraps CE's into something, so if somebody wants to build
> non-standard wrapping using HTML CE he CAN NOT do it. (which is
> described in the bug [1])
>
> sample:
>
> CE1 (HTML): <div class="mySpecialWrap>
> CE2 (TEXT): textpic CE
> CE3 (HTML): </div>
>
> every CE will be wrapped in <div class="csc-default>|</div> and whole
> construction will be invalid.
>
> sample:
>
> <div class="csc-default>
> <div class="mySpecialWrap>
> </div> <!-- browser threaded end of this wrap as the end of the
> div.mySpecialWrap-->
>
> <div class="csc-default>
> ... some textpic CE
> </div>
>
> <div class="csc-default>
> </div>
> </div>
>
> Of course this behaviour can be fixed by creating this absent type of
> frame (no frame):
>
> 1. create new frame in TSconfig of the rootpage:
>
> TCEFORM.tt_content.section_frame.addItems.22 = NO frame!
>
> 2. Add modified type to CSC in main TS template w/out any wrap:
>
> tt_content.stdWrap.innerWrap.cObject.22 =<
> tt_content.stdWrap.innerWrap.cObject
>
> 3. Set CE's frame type to "NO Frame!" (type 22)
>
> And in general it works. However I wonder if csc-default wrap is
> necessary at all... There was a discussion few years ago on the same
> list, and the same topic:
>
> [2]
> http://support.typo3.org/projects/content-rendering/m/typo3-content-rendering-rfc-default-wrap-for-each-ce-section-frame-246183/p/4/
>
>
> and conclusion was that should stay without any wraps if no frame is
> selected.
>
> On the other hand I understand that CSC's authors had some idea changing
> this, so maybe solution would be just adding this "No frame" option to
> the list of the standard frames in future versions?
>
> What is your opinion?
>
> My vote is +1 for new "NO frame!" type. (it can be selected later as
> default via TSConfig) and it's just absent element (at least in 4.3 CSC)
>
>
>
>
>
More information about the TYPO3-project-content-rendering
mailing list