[TYPO3-english] Apply a class to a tt_news item

Lamb, Brian blamb at jcvi.org
Mon Oct 13 15:46:00 CEST 2008


Any ideas? Your assistance would be greatly appreciated. 

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Lamb,
Brian
Sent: Thursday, October 09, 2008 8:40 AM
To: TYPO3 English
Subject: [TYPO3-english] Apply a class to a tt_news item

Hello all, 

 

I am trying use TypoScript to apply a class to every tt_news item that
is flagged as an external URL. I tried the following TypoScript:

 

plugin.tt_news {

  getRelatedCObject = COA

  getRelatedCObject {

    10 = CASE

    10.key.field = type

    10.2 = COA

    10.2 {

      wrap = <span class="external-link-new-window"> | </span>

    }

  }

}

 

But this did do anything. Alternatively, if there is a way to apply the
class directly to the <a> tag, that would be preferable but wrapping it
in a span class is acceptable. Thoughts? 

 

Thanks, 

 

Brian Lamb

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list