[TYPO3-ttnews] Archive Menu

Paul Vetch paul at qedstudio.com
Tue Jun 5 01:34:18 CEST 2007


Hi Oliver,

Partial output below (I guess this was what you wanted?). In this case,
the first item (Mar - May 2007) is selected so should have <strong> tags
around it, inside the anchor.

        <div class="ch"><h3>Archive Menu</h3></div>
        <div class="ct">
            <dl>
            <dt>2007</dt>
            <dd><a
href="about/news/news_archive/link//71a341d1d8/archive/2007/march.html"
target="_self">Mar -&nbsp;May 2007: 1 item(s)</a></dd>
            <dt>2006</dt>
            <dd><a
href="about/news/news_archive/link//06e0efde8a/archive/2006/september.ht
ml" target="_self">Sep -&nbsp;Nov 2006: 2 item(s)</a></dd
        </dl>
        </div>

Thanks

Paul

> -----Original Message-----
> From: Oliver Rowlands [mailto:oliver at liquidlight.co.uk]
> Posted At: 04 June 2007 20:33
> Posted To: typo3.projects.tt-news
> Conversation: [TYPO3-ttnews] Archive Menu
> Subject: Re: [TYPO3-ttnews] Archive Menu
> 
> Hi Paul,
> 
> Can you provide me with a dump of the generated code when on one of
the
> AMENU pages?
> 
> Regards,
> 
> Oliver
> 
> Paul Vetch wrote:
> > Hi,
> >
> > Just working on a site with a large news archive and I'm using the
> great
> > snippet provided in the tt_news docs which generates a nicely
> formatted
> > quarterly AMENU.  Trouble is it is supposed to show the currently
> > selected page in bold, but this doesn't work (evidently the if
> condition
> > isn't being met) and I can't understand why not.  The only factor
> thing
> > I can think of is a RealURL problem maybe...?  I'm running ttnews
2.5
> > from TER.
> >
> > The TS:
> >
> > plugin.tt_news {
> > reverseAMenu = 0
> > archiveMode = quarter
> > archiveTitleCObject >
> > archiveTitleCObject = COA
> > archiveTitleCObject {
> > 10 = COA
> > 10 {
> > 10= TEXT
> > 10 {
> > field = start
> > strftime = %b -&nbsp;
> > wrap = <strong>|
> > }
> > 11 = TEXT
> > 11 {
> > field = stop
> > strftime = %b %Y
> > wrap = |</strong>
> > }
> > if {
> > value.field = start
> > equals.data = GPvar:tx_ttnews|pS
> > }
> > }
> > 20 = COA
> > 20 {
> > 10= TEXT
> > 10 {
> > field = start
> > strftime = %b -&nbsp;
> > wrap =
> >  }
> > 11 = TEXT
> > 11 {
> > field = stop
> > strftime = %b %Y
> > wrap =
> > }
> > if {
> > value.field = start
> > equals.data = GPvar:tx_ttnews|pS
> > negate = 1
> > }
> > }
> > }
> > }
> >
> >  - Does anyone know why this might not be working?
> >
> > Thanks
> >
> > Paul
> >
> >
> 
> 
> --
> Oliver Rowlands
> :: Liquid Light ::
> 
> E - oliver at liquidlight.co.uk
> W - http://www.liquidlight.co.uk
> 
> T - 00 44 (0)845 6 58 88 35
> F - 00 44 (0)845 6 58 44 35



More information about the TYPO3-project-tt-news mailing list