[TYPO3-content-rendering] RFC: Let's discuss the "default frame" in 4.3

Marcus 'biesior' Biesioroff vsbies at wp.pl
Thu Jun 11 23:30:44 CEST 2009


Susanne Moog wrote:
>> sample:
>>
>>   CE1 (HTML): <div class="mySpecialWrap>
>>   CE2 (TEXT): textpic CE
>>   CE3 (HTML): </div>
>>
> To build your example in a real project, I would use a content frame, as
> that's exactly what they are there for, so I don't really see the
> problem for that example case.

Well You're right. Now I can see that my sample is wrong, consider such 
situation:

CE1 (HTML): <div class="mySpecialWrap"> (no frame)
   CE2 (TEXTPIC): textpic CE (no frame)
   CE3 (TEXTPIC): textpic CE (no frame)
   CE4 (TEXTPIC): textpic CE (no frame)
CE5 (HTML): </div> (no frame)

In CE2 there is standard wrap: <div class="csc-default">|</div> and its 
end is treated  by the browser as an end of div.mySpecialWrap. Also 
single frame setup doesn't solve the thing. Therefore administrator 
should have a possibility to completely turn-off the wrapping for these 
elements (as CE1 and CE5 are doing the wrapping job "manually").

> But I see your point with wanting no frame around the element. As the
> default frame also is the content elements anchor currently (and used
> for spacing), we have to consider these side effects if we generate a
> "no frame" option --> does no frame mean the editor has to take care of
> the anchor and the spacing by himself or does TS add those and how?

"No frame" frame shouldn't render any additional data... any...
In fact you perfectly know that my sample is very rare construction, 
but... sometimes people use it (also me). But if somebody decides to do 
things like this, he shouldn't have any problems with manual coding it:

CE1 (HTML): <div class="mySpecialWrap" style="margin-top:25px; 
margin-bottom: 12px;"> (no frame)
   CE2 (TEXTPIC): textpic CE (no frame)
   CE3 (TEXTPIC): textpic CE (no frame)
   CE4 (TEXTPIC): textpic CE (no frame)
CE5 (HTML): </div> (no frame)


So if there's a require to use certain anchors he can build such 
construction:

CE1 (BLIND-TEXTPIC): textpic CE (*default frame*)
CE2 (HTML): <div class="mySpecialWrap" style="margin-top:25px; 
margin-bottom: 12px;"> (no frame)
   CE3 (TEXTPIC): textpic CE (no frame)
   CE4 (TEXTPIC): textpic CE (no frame)
   CE5 (TEXTPIC): textpic CE (no frame)
CE6 (HTML): </div> (no frame)




That's my idea... :)

-- 
Marcus 'biesior' Biesioroff
a.k.a. Marek Krawczyk (original)

Polish TYPO3 Community Proud Member
http://typo3.pl


More information about the TYPO3-project-content-rendering mailing list