CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Task #38470

colPos is missing in TtContent domain model

Added by Juerg Langhard 12 months ago. Updated 12 months ago.

Status:Resolved Start date:2012-06-28
Priority:Should have Due date:
Assignee:Georg Ringer % Done:

100%

Category:Core
Target version:2.0.0
TYPO3 Version:4.7 Has patch:Yes
PHP Version: Complexity:no-brainer
Votes: 0

Description

The domain model has no assignment. This is useful if you want the related content to be displayed in multiple columns.

Example:

            <div class="row">
                <div class="span6">
                    <!-- main text -->
                    <div class="news-text-wrap">
                        <f:format.html>{newsItem.bodytext}</f:format.html>
                    </div>

                    <!-- content elements -->
                    <f:for each="{newsItem.contentElements}" as="contentElement">
                        <f:if condition="{contentElement.colPos}==0">
                            <f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{contentElement.uid}</f:cObject>
                        </f:if>
                    </f:for>
                </div>

                <div class="span3">
                    <!-- content elements -->
                    <f:for each="{newsItem.contentElements}" as="contentElement">
                        <f:if condition="{contentElement.colPos}==2">
                            <div class="ce_box">
                                <div class="ce_content">
                                    <f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{contentElement.uid}</f:cObject>
                                </div>
                            </div>
                        </f:if>
                    </f:for>
                </div>
            </div>

patch_commit_0d1bb60c015e.patch (1.7 kB) Juerg Langhard, 2012-06-28 19:22

2colFrontend.png - News detail with two columns (215 kB) Juerg Langhard, 2012-06-28 19:22

relatetTtContent.png - Relatet tt_content with colPos selection (38.2 kB) Juerg Langhard, 2012-06-28 19:22

Associated revisions

Revision e55a72b2
Added by Georg Ringer 12 months ago

[TASK] Add colPos to TtContent model

colpos was missing in the model

Change-Id: I81c19904ffabfe80bfa530e8a3411b419cb7a201
Resolves: #38470

History

Updated by Georg Ringer 12 months ago

  • Category changed from Frontend to Core
  • Status changed from New to Accepted
  • Target version changed from 1.4.0 to 2.0.0

Updated by Gerrit Code Review 12 months ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12421

Updated by Georg Ringer 12 months ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
  • Complexity set to no-brainer

Also available in: Atom PDF