[Typo3] tt_news 2.2.14
Gabriel Anast
gabriel at anast.org
Thu Jun 9 23:11:53 CEST 2005
Rupert Germann wrote:
> this is a bug and I'm already looking at it.
>
Also look at these lines in pi/class.tx_ttnews.php
$newsAuthor =
$this->local_cObj->stdWrap($row['author']?$this->pi_getLL('preAuthor').'
'.$row['author']:'', $lConf['author_stdWrap.']);
$markerArray['###NEWS_AUTHOR###'] =
$this->formatStr($newsAuthor);
First it is impossible to get rid of the contents of
$this->pi_getLL('preAuthor') with Typoscript alone.
Second, for some reason, it also adds the subheader_stdWrap "outside" or
"around" the author_stdWrap... quite odd.
Example TS (verified in Object Browser):
subheader_stdWrap.ifEmpty.field = bodytext
author_stdWrap.wrap = —|,
Result with default code:
<p class="bodytext"> —By: Bill
Shakesphere, </p>
So, I changed the line back to:
$markerArray['###NEWS_AUTHOR###'] =
$this->local_cObj->stdWrap($row['author'], $lConf['author_stdWrap.']);
...and it fixed both problems. The first obvious, the second enigmatic.
Result with reverted code:
—By: Bill Shakesphere,
--gabe
More information about the TYPO3-english
mailing list