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

Feature #4187

Add TS wrap to post-edited ([This article was edited ###COUNT### times, at last ###DATE### at ###TIME###.])

Added by Hauke Hain almost 4 years ago. Updated over 2 years ago.

Status:Resolved Start date:2009-08-08
Priority:Should have Due date:
Assignee:Martin Helmich % Done:

100%

Category:Typoscript
Target version:0.1.8 Estimated time:0.10 hour
Votes: 0

Description

Please replace line 552 in class.tx_mmforum_postfunctions.php
$posttext .= '<br /><br />' . $this->cObj->substituteMarkerArray($this->pi_getLL('post.edited'), $editMarker);

with
$posttext .= '<br /><br />' . $this->cObj->wrap($this->cObj->substituteMarkerArray($this->pi_getLL('post.edited'), $editMarker),$this->conf['list_posts.']['postedited_wrap']);

post_edited_extended.diff - Patch against trunk (1.6 kB) Krystian Szymukowicz, 2009-08-30 13:10

post_edited_extended_2.diff - Patch against trunk (1.6 kB) Krystian Szymukowicz, 2009-08-30 13:17

Associated revisions

Revision e650e11d
Added by Martin Helmich over 3 years ago

Fixed #4187.

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/mm_forum/trunk@24160 735d13b6-9817-0410-8766-e36946ffe9aa

History

Updated by Krystian Szymukowicz over 3 years ago

Yes! I miss this too.

But please do not include those '<br /><br />'. Its not good to hardcode anything that can not be changed by CSS.

So this would be better:
$posttext .= $this->cObj->wrap($this->cObj->substituteMarkerArray($this->pi_getLL('post.edited'), $editMarker),$this->conf['list_posts.']['postedited_wrap']);

And for backward compatibility the '<br /><br />' can be put into TS:

...
list_posts.postedited_wrap = <br /><br />|
...

greetings

Updated by Krystian Szymukowicz over 3 years ago

I've prepared a patch against trunk including changes in tx_mmforum_pi1.ts

This version is a little bit extended compared to first post.

1. Its now stdWrap insted of wrap.
2. $this->cObj->data is filed with marker array so one can use it in stdWrap. This allow for much more flexibility.

example:

list_posts {
        postEdited_stdWrap {
            dataWrap = Edited: {field:###COUNT###} times
        }    

Updated by Krystian Szymukowicz over 3 years ago

Upps. Some whitespace chars are messed in the patch. Here correct version.

grtz

Updated by Martin Helmich over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 50 to 100

Applied in changeset r24160.

Also available in: Atom PDF