[TYPO3] tt_news - AMENU
Lamb, Brian
blamb at jcvi.org
Wed Dec 12 21:29:03 CET 2007
Also,
Using the below configuration generates links like:
<a href="press/archives/archive/2007/" >2007: 23 items</a>
Using the initial configuration generates links like:
<a href="press/archives/?tx_ttnews%5BpS%5D=1167627600&tx_ttnews%5BpL%5D=31535999&tx_ttnews%5Barc%5D=1&cHash=74b8de45e4" >2007 : 23 items</a>
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Lamb, Brian
Sent: Wednesday, December 12, 2007 3:22 PM
To: TYPO3 English
Subject: Re: [TYPO3] tt_news - AMENU
Hi,
I don't particularly understand my TS either. It is mostly what is included in the tt_news documentation. I used basically what you gave me:
plugin.tt_news {
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
}
But I still have the same issue where it does not display the items when I click the links.
-----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 =
> }
What's that supposed to do? What's a 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
_______________________________________________
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