Project

General

Profile

Actions

Bug #72422

closed

Missing layout in fuild styled content Textmedia.html

Added by Charles Brunet over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid Styled Content
Start date:
2015-12-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Is there any reason why there is no <f:layout name="HeaderContentFooter" /> in Textmedia.html template? It prevents using custom layout for Textmedia content type.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #79622: Streamline CSS Styled Content and Fluid Styled ContentClosed2017-02-28

Actions
Actions #1

Updated by Charles Brunet over 8 years ago

I see... This is because the position of the header can be different, depending on the chosen options.

In that case, why not to conditionally choose the template, depending on the gallery position:

<f:layout name="{f:if(condition:'{gallery.position.noWrap} == 1', then:'ContentFooter', else:'HeaderContentFooter')}" />

The reason behind is that if I modify the layout (to add a frame around the elements, for example), it will also apply to Textmedia elements. Otherwise, I have to modify both the layouts and the Textmedia template.

Actions #2

Updated by Gianluigi Martino over 8 years ago

  • Assignee deleted (Benni Mack)
Actions #3

Updated by Riccardo De Contardi about 8 years ago

  • Target version set to Candidate for patchlevel
Actions #4

Updated by Thomas Kieslich over 7 years ago

you can change Textmedia.html to:

<f:layout name="ContentFooter"/>

<f:section name="content">
    <f:if condition="{gallery.position.noWrap} != 1">
        <f:render partial="Header" arguments="{_all}" />
    </f:if>

    <div class="ce-textpic ce-{gallery.position.horizontal} ce-{gallery.position.vertical}{f:if(condition: gallery.position.noWrap, then: ' ce-nowrap')}">
        <f:if condition="{gallery.position.vertical} != 'below'">
            <f:render partial="MediaGallery" arguments="{_all}" />
        </f:if>

        <f:if condition="{data.bodytext}">
            <f:then>
                <div class="ce-bodytext">
                    <f:if condition="{gallery.position.noWrap}">
                        <f:render partial="Header" arguments="{_all}" />
                    </f:if>
                    <f:format.html>{data.bodytext}</f:format.html>
                </div>
            </f:then>
            <f:else>
                <f:if condition="{gallery.position.noWrap}">
                    <f:if condition="{data.header}">
                        <div class="ce-bodytext">
                            <f:render partial="Header" arguments="{_all}" />
                        </div>
                    </f:if>
                </f:if>
            </f:else>
        </f:if>

        <f:if condition="{gallery.position.vertical} == 'below'">
            <f:render partial="MediaGallery" arguments="{_all}" />
        </f:if>
    </div>

</f:section>

and add in the three Layoutfiles

<div id="c{data.uid}" {f:if(condition: data.layout, then: ' class="celayout-{data.layout}"')}>

to use the Layout field.

This changes would it make much easier to add custom Layouts with only change layoutRootPaths.

Would be nice to see it in next Version.

Actions #5

Updated by Gerrit Code Review about 7 years ago

  • Status changed from New to Under Review

Patch set 65 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #6

Updated by Gerrit Code Review about 7 years ago

Patch set 66 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #7

Updated by Gerrit Code Review about 7 years ago

Patch set 67 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #8

Updated by Gerrit Code Review about 7 years ago

Patch set 68 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #9

Updated by Gerrit Code Review about 7 years ago

Patch set 69 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #10

Updated by Gerrit Code Review about 7 years ago

Patch set 70 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #11

Updated by Gerrit Code Review about 7 years ago

Patch set 71 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #12

Updated by Gerrit Code Review about 7 years ago

Patch set 72 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #13

Updated by Gerrit Code Review about 7 years ago

Patch set 73 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #14

Updated by Gerrit Code Review about 7 years ago

Patch set 74 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #15

Updated by Gerrit Code Review about 7 years ago

Patch set 75 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #16

Updated by Gerrit Code Review about 7 years ago

Patch set 76 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #17

Updated by Gerrit Code Review about 7 years ago

Patch set 77 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #18

Updated by Gerrit Code Review about 7 years ago

Patch set 78 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #19

Updated by Gerrit Code Review about 7 years ago

Patch set 79 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #20

Updated by Gerrit Code Review about 7 years ago

Patch set 80 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #21

Updated by Gerrit Code Review about 7 years ago

Patch set 81 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #22

Updated by Gerrit Code Review about 7 years ago

Patch set 82 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #23

Updated by Gerrit Code Review about 7 years ago

Patch set 85 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #24

Updated by Gerrit Code Review about 7 years ago

Patch set 86 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51065

Actions #25

Updated by Anonymous about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #26

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF