[TYPO3-content-rendering] tt_content.menu.20.7.2 in Typo3 4.0

JoH info at cybercraft.de
Thu Jun 1 01:11:43 CEST 2006


>>>>> There is also a php workaround for this problem.
> I've been using this workaround in my Typo3 3.8.* installations, but
> it's not working with my 4.0s.
>
>>> It's not just a menu type of the menu/sitemap element, since
>>> sectionIndex is
>>> a TS property of all xMENU items.
>>> So even menus you might have created manually won't work if you're
>>> trying to
>>> use sectionIndex.
> Yes! I already tried to modify the default TS, adding
>     .sectionIndex = 1
>     .sectionIndex.type = header
> without any success.
>
> Thx for your replies. I was starting to believe, that I'm the only
> Typo3 user having that problem ;-)

Try this workaround until the bug is fixed.
It combines the "menu of subpages" and the "section index".

10 = HMENU
10 {
    special = directory
    special.value.field = pages
    # or special.value = 123,456
    1 = TMENU
    1 {
        wrap = <ul>|</ul>
        NO = 1
        NO {
            wrap = <li>|</li>
            postCObject = CONTENT
            postCObject {
                wrap = <ul>|</ul>
                table = tt_content
                select {
                    pidInList.field = uid
                    where = colPos = 0
                    languageField = sys_language_uid
                    andWhere = sectionIndex!=0
                }
                renderObj=TEXT
                renderObj {
                    fieldRequired = header
                    trim = 1
                    field = header
                    htmlSpecialChars = 1
                    wrap = <li>|</li>
                    typolink {
                        parameter.field = pid
                        section.field = uid
                    }
                }
            }
        }
    }
}

Not tested!

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-project-content-rendering mailing list