Feature #4187
Add TS wrap to post-edited ([This article was edited ###COUNT### times, at last ###DATE### at ###TIME###.])
| 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']);
Associated revisions
Fixed #4187.
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
- File post_edited_extended.diff added
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
- File post_edited_extended_2.diff added
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.