Feature #58929

PageLayoutView: Add hook for tt_content_drawFooter

Added by Leon de Rijke over 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-05-19
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

In TYPO3 4.7 the info fields for a tt_content element (hidden,starttime,endtime,fe_group,spaceBefore,spaceAfter) were drawn before the item itself. We could visually add extra information to the info fields:

tt_content element preview in 4.7

In this case the "Publication Repeat Interval" was added. We accomplished this with some cheating: add the extra information before the header of the item. See https://github.com/cmsworks/cw_content_scheduler/blob/v0.3.1/Classes/Hooks/CmsLayout.php#L56

In TYPO3 6.0 the info fields are rendered in a footer, after the item itself. There is no way we can (visually) add extra information to the info fields and our "Publication Repeat Interval" is rendered before the header of the item:

tt_content element preview in 6.0

We can render it between the header and content of the item, but we can't render it in the footer, unfortunately. It would be great if a hook was added for tt_content_drawFooter, so we can override/adapt the rendering of the footer.

preview4-7.png View - tt_content element preview in 4.7 (13.5 KB) Leon de Rijke, 2014-05-19 15:57

preview6-0.png View - tt_content element preview in 6.0 (11.9 KB) Leon de Rijke, 2014-05-19 15:57

Associated revisions

Revision ff395217 (diff)
Added by Leon de Rijke almost 5 years ago

[FEATURE] Add hook for content element footer in Page module

Currently, there is only a hook for the `tt_content_drawItem` function
in the PageLayoutView. Since 6.0 the info fields for a tt_content element
(hidden,starttime,endtime,fe_group,spaceBefore,spaceAfter) are rendered
in a footer, so there is no way to alter the rendering of the info
fields or add information to the footer.

This change adds a hook to the `tt_content_drawFooter` function
responsible for rendering the footer.

Resolves: #58929
Releases: master
Change-Id: I23c54eefd3a511fddd480b4bf08d6a3977757973
Reviewed-on: http://review.typo3.org/31309
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>
Reviewed-by: Frank Nägler <>
Tested-by: Frank Nägler <>

Revision d6c16f64 (diff)
Added by Frank Naegler almost 5 years ago

[FOLLOW-UP] Rename rst file

Add missing file extension to rst file.

Resolves: #58929
Releases: master
Change-Id: I39e9286914eb92db70dfd68bcd837b9fe0183f2f
Reviewed-on: http://review.typo3.org/35647
Reviewed-by: Frank Nägler <>
Tested-by: Frank Nägler <>

History

#1 Updated by Georg Ringer over 5 years ago

  • Status changed from New to Accepted

wanna do a patch and maybe even push to gerrit?

#2 Updated by Leon de Rijke over 5 years ago

Georg Ringer wrote:

wanna do a patch and maybe even push to gerrit?

I'm not sure if I can come up with something useful, but I'll take a stab at it.

#3 Updated by Gerrit Code Review over 5 years ago

  • Status changed from Accepted to Under Review

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

#4 Updated by Gerrit Code Review almost 5 years ago

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

#5 Updated by Gerrit Code Review almost 5 years ago

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

#6 Updated by Leon de Rijke almost 5 years ago

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

#7 Updated by Gerrit Code Review almost 5 years ago

  • Status changed from Resolved to Under Review

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

#8 Updated by Frank Naegler almost 5 years ago

  • Status changed from Under Review to Resolved

#9 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF