[TYPO3] Categories linked in latest tt_news
Sergio Catalá Gil
scatala at iti.upv.es
Tue Sep 9 10:06:07 CEST 2008
Hi,
in my main TS template I create a LATEST tt_news object that it's
inserted in the main page of my site. This object shows the latest news
from a certain category. I just want the LATEST_HEADER to be a link to
the category of these news.
This is the object I use in my TS template:
lib.subvenciones < plugin.tt_news
lib.subvenciones {
code >
code = LATEST
pid_list >
pid_list = 53
singlePid = 215
archiveTypoLink.parameter = 11
latestLimit = 3
_LOCAL_LANG.default {
latestHeader = Ayudas y subvenciones
}
_LOCAL_LANG.es {
latestHeader = Ayudas y subvenciones
}
_LOCAL_LANG.en {
latestHeader = Fellowships and subventions
}
}
And this is my tt_news_v2_template.html:
<!-- ###TEMPLATE_LATEST### begin -->
<div class="titulos"> ###LATEST_HEADER###</div>
<!-- ###CONTENT### begin -->
<!-- ###NEWS### begin -->
...
<!-- ###NEWS### end-->
<!-- ###CONTENT### end -->
<!-- ###TEMPLATE_LATEST### end -->
I just want to do something like this:
<a href="link_to_the_category"><div
class="titulos"> ###LATEST_HEADER###</div></a>
But I can't find the ###label### and don't know how to solve it.
Thanks in advance,
Sergio
More information about the TYPO3-english
mailing list