Task #38470
colPos is missing in TtContent domain model
| 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>
Associated revisions
[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