[TYPO3] tt_news related_stdWrap
Lamb, Brian
blamb at jcvi.org
Mon Jul 7 14:56:19 CEST 2008
Xavier,
I was missing the ###TEXT_RELATED### marker from my template. It wasn't
clear in the documentation what ###TEXT_RELATED### was used for. Other
than the wrap, I wonder if there is any use for it.
Thanks for pointing this out.
Hello,
> plugin.tt_news.related_stdWrap.wrap = <div id="right_content"><div
> class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Related
> News</h1>|</div></div>
>
> The issue occurs in that the related news items ignore everything to
the
> left of the | . So basically I get ###RELATED_NEWS###</div></div>
> instead of <div id="right_content"><div class="csc-header
> csc-header-n1"><h1 class="csc-firstHeader">Related
> News</h1>###RELATED_NEWS </div></div>
>
> Does anyone see a mistake on my part?
I opened file tt_news/pi/class.tx_ttnews.php, around line 1587:
$markerArray['###TEXT_RELATED###'] = '';
$markerArray['###NEWS_RELATED###'] = '';
if ($relatedNews) {
$rel_stdWrap = t3lib_div::trimExplode('|',
$this->conf['related_stdWrap.']['wrap']);
$markerArray['###TEXT_RELATED###'] =
$rel_stdWrap[0].$this->local_cObj->stdWrap($this->pi_getLL('textRelated'
),
$this->conf['relatedHeader_stdWrap.']);
$markerArray['###NEWS_RELATED###'] =
$relatedNews.$rel_stdWrap[1];
}
that is the left part, before the | is assigned to
$markerArray['###TEXT_RELATED###'] and the right part to
$markerArray['###NEWS_RELATED###'].
I do not use tt_news and I'm thus not an expert at all, but does your
template provide markers for ###TEXT_RELATED### *and* ###NEWS_RELATED###
?
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list