[TYPO3-core] RFC #11316: Feature: Add a "No Frame" option [css styled content]
Susanne Moog
typo3 at susannemoog.de
Sat Apr 3 17:52:32 CEST 2010
REMINDER #1
Am Samstag, den 27.03.2010, 10:21 +0100 schrieb Susanne Moog:
> This is an SVN patch request.
>
> Type: Feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11316
>
> Branches:
> trunk
>
> Problem:
> The problem is that in the current version of css styled content a
> default frame around the elements is rendered as replacement for the
> anchor element. If you used HTML elements to get quick wrappers for
> multiple content elements you now have an additional div which destroys
> your layout. ATM you have to disable it manually by changing the frame
> rendering typoscript. This problem was discussed on the content
> rendering group ([TYPO3-content-rendering] RFC: Let's discuss the
> "default frame" in 4.3)
>
>
> Solution:
> I propose the following solution:
> - Keep the default frame (see deeper reasons in the discussion)
> - Define a label for the default frame ("Default Frame" instead of no
> label, so one can guess that there will be a frame around the element)
> - Define a new section_frame called "No Frame" which renders the element
> like v4.2 did and which can be used for wrapper HTML elements.
>
> Best regards,
>
> Susanne
> Unterschiede zwischen Dateien-Anlage (11316_v2.diff)
> Index: typo3/sysext/css_styled_content/ext_tables.php
> ===================================================================
> --- typo3/sysext/css_styled_content/ext_tables.php (revision 7196)
> +++ typo3/sysext/css_styled_content/ext_tables.php (working copy)
> @@ -13,4 +13,7 @@
> t3lib_extMgm::addStaticFile($_EXTKEY, 'static/v3.9/', 'CSS Styled Content TYPO3 v3.9');
> t3lib_extMgm::addStaticFile($_EXTKEY, 'static/v4.2/', 'CSS Styled Content TYPO3 v4.2');
>
> +$TCA['tt_content']['columns']['section_frame']['config']['items'][0] = Array('LLL:EXT:css_styled_content/locallang_db.php:tt_content.tx_cssstyledcontent_section_frame.I.0', '0');
> +$TCA['tt_content']['columns']['section_frame']['config']['items'][9] = Array('LLL:EXT:css_styled_content/locallang_db.php:tt_content.tx_cssstyledcontent_section_frame.I.9', '66');
> +
> ?>
> \ No newline at end of file
> Index: typo3/sysext/css_styled_content/locallang_db.xml
> ===================================================================
> --- typo3/sysext/css_styled_content/locallang_db.xml (revision 7196)
> +++ typo3/sysext/css_styled_content/locallang_db.xml (working copy)
> @@ -27,6 +27,8 @@
> <label index="tt_content.tx_cssstyledcontent_tableparsing_delimiter_colon">:</label>
> <label index="tt_content.tx_cssstyledcontent_tableparsing_delimiter_comma">,</label>
> <label index="tt_content.tx_cssstyledcontent_tableparsing_delimiter_tab"><tabulator></label>
> + <label index="tt_content.tx_cssstyledcontent_section_frame.I.9">No Frame</label>
> + <label index="tt_content.tx_cssstyledcontent_section_frame.I.0">Default Frame</label>
> </languageKey>
> </data>
> </T3locallang>
> Index: typo3/sysext/css_styled_content/static/setup.txt
> ===================================================================
> --- typo3/sysext/css_styled_content/static/setup.txt (revision 7196)
> +++ typo3/sysext/css_styled_content/static/setup.txt (working copy)
> @@ -316,7 +316,7 @@
> 30 = TEXT
> 30.value = >|</div>
> }
> -
> +
> 1 =< tt_content.stdWrap.innerWrap.cObject.default
> 1.15.value = csc-frame csc-frame-invisible
>
> @@ -340,6 +340,54 @@
>
> 21 =< tt_content.stdWrap.innerWrap.cObject.default
> 21.15.value = csc-frame csc-frame-frame2
> +
> + 66 = COA
> + 66 {
> + 10 = TEXT
> + 10 {
> + value = <a id="c{field:uid}"></a>
> + insertData = 1
> + }
> +
> + 20 = COA
> + 20 {
> + 10 = TEXT
> + 10 {
> + value = {$content.spaceBefore}
> + wrap = |+
> + if.isTrue = {$content.spaceBefore}
> + }
> +
> + 20 = TEXT
> + 20 {
> + field = spaceBefore
> + }
> +
> + stdWrap {
> + prioriCalc = intval
> + wrap = margin-top:|px;
> + required = 1
> + ifEmpty.value =
> + wrap2 = <div style="|"></div>
> + }
> + }
> +
> + 30 = TEXT
> + 30 {
> + value = |
> + }
> +
> + 40 < .20
> + 40 {
> + 10 {
> + value = {$content.spaceAfter}
> + if.isTrue = {$content.spaceAfter}
> + }
> + 20.field = spaceAfter
> + stdWrap.wrap = margin-bottom:|px;
> + }
> + }
> +
> }
>
> innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
>
More information about the TYPO3-team-core
mailing list