[TYPO3] Menu generating: wrap question
Oliver Friesen
oliver_f_typo3 at gmx.net
Tue Aug 21 07:53:59 CEST 2007
Hi,
On 8/20/07, Cray Flatline <cryangel at gmail.com> wrote:
>
> I'm generating news categories list (only first level categories) with
> such TS. And it works well except the one little thing. It gives me
not
>
> <li><a href="..">Menu item</a></li>
>
> but completely ugly
>
> <a href=".."><li>Menu item</li></a>
>
> I'm new to TS, and any of my experiments failed. I can't wrap link
with
> <li> AFTER but not before.
>
> Please help me somebody. (:
>
>
=======================================================================
>
> temp.leftmenu = CONTENT
> temp.leftmenu {
> table = tt_news_cat
> select {
> # the category folder(s)
> pidInList = 36
> andWhere = parent_category = 10
>
> }
> renderObj = COA
> renderObj.wrap = <li>|</li>
> renderObj {
> stdWrap.typolink.parameter=32
> stdWrap.typolink.additionalParams.dataWrap =
&tx_ttnews[cat]={field:uid}
> 20 = TEXT
> 20 {
> field = title
> wrap = <span>|</span>
> 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
> }
> }
> }
> }
Wrap the typolink instead. Check the .typolink section of the TSref
for more details.
--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
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