[TYPO3] tt_news - AMENU

Lamb, Brian blamb at jcvi.org
Fri Dec 14 17:48:58 CET 2007


I managed to get it worked out. I used your TypoScript and made a few other changes and it works as expected. Now, the links that are generated look like: "2007: 23 items". 

Is it possible to either
a) Change the display to be "2007" or
b) Wrap the <span> tag around the entire link. Currently, it is only wrapped around 2007. 

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Francois Suter
Sent: Wednesday, December 12, 2007 3:17 PM
To: TYPO3 English
Subject: Re: [TYPO3] tt_news - AMENU

Hi Brian,

There are some parts of your TS I don't understand:

>       11 = TEXT
>       11 {
>         field = stop
>         strftime = &nbsp;
>       }

What's that supposed to do? What's a &nbsp; entity doing as a  
strftime value?

> This will correctly display the menu. However, when I click on a link,
> it does not show the articles from that year. Any thoughts?

Well what do your links look like? Could you post an example?

If it maybe of any help, here is some TS coming from one of my web  
sites with yearly-archiving mode:

     archiveMode = year
     useHRDates = 1
     archiveTitleCObject.10 {
         if.value.date = Y
         if.equals.data = GPvar:tx_ttnews|year
         strftime = %Y
         wrap = <span class="cw_itemcur">|</span>
     }
     archiveTitleCObject.20 {
         if.value.date = Y
         if.equals.data = GPvar:tx_ttnews|year
         strftime = %Y
     }
     newsAmenuUserFunc >
     amenuWithCatSelector = 1

Note that this represents only the changes from the default TS setup.  
I use human-readable dates because it fits better with RealURL.

HTH

François Suter

-- 
Cobweb Development Sàrl
www.cobweb.ch

Rue Eugène-Marziano 15, CH-1227 Les Acacias (Geneva - Switzerland)
T: +41 22 880 00 93, F: +41 22 880 00 94, E: support at cobweb.ch
web solutions for professionnal requirements






More information about the TYPO3-english mailing list