[Typo3] category selector
Philipp Fleischmann
phf at gmx.at
Mon Feb 14 11:24:46 CET 2005
Hi list
I posted this a few days ago, but nobody replied. I hope you don't care if
I try it again:
In the docs of tt_news I found an example how to make a category selector
(See
<http://typo3.org/documentation/document-library/tt_news/Configuration-63>http://typo3.org/documentation/document-library/tt_news/Configuration-63)
I tried to use this in the setup code of the template of one of my
subpages, but it doesnt work - the only thing it does is cleaning the
appropriate subpart. but it does not fill it. does somebody hae an idea
what could be the problem?
thats my code
page.10.subparts.hauptfeld.subparts.mittelinks >
page.10.subparts.hauptfeld.subparts.mittelinks = CONTENT
page.10.subparts.hauptfeld.subparts.mittelinks {
table = tt_news_cat
select {
# the category folder(s)
pidInList = 22
}
renderObj = COA
renderObj.wrap = <div class="news-archive-item">|</div>
renderObj {
10 = TEXT
10.field = uid
10.dataWrap = <a href=index.php?id={TSFE:id}&tx_ttnews[cat]= | >
10.insertData = 1
20 = TEXT
20 {
field = title
wrap = <strong>|</strong>
if {
value.field = uid
equals.data = GPvar:tx_ttnews|cat
}
}
21 = TEXT
21 {
field = title
wrap = |
if {
value.field = uid
equals.data = GPvar:tx_ttnews|cat
negate = 1
}
}
30 = TEXT
30.value = | </a><br />
}
}
Philipp Fleischmann
-----------------------------
www.socialistworld.net
www.slp.at
More information about the TYPO3-english
mailing list