[TYPO3-core] RFC bug #17360: beforeWrap property of TMENU is not recognized anymore
Ernesto Baschny [cron IT]
ernst at cron-it.de
Tue Feb 1 11:55:15 CET 2011
François Suter schrieb am 01.02.2011 11:53:
> Hi,
>
> Correct bug tracker reference: http://bugs.typo3.org/view.php?id=17360
>
>> Problem: After upgrading from TYPO3 4.4.6 to 4.5.0 the typoscript
>> property beforeWrap of TMENU, does not work anymore in one of my TS
>> templates.
>
> The problem actually applies to TMENUITEM. Test snippet:
>
> lib.menu = HMENU
> lib.menu {
> 1 = TMENU
> 1 {
> wrap = <ul class="nav">|</ul>
> NO.allWrap = <li>|</li>
> NO.before = *
> NO.beforeWrap = <span class="asterisk">|</span>
> }
> }
>
> Before patch "*" appears unwrapped, after patch "*" is wrapped in
> defined span tag.
>
>> Solution:
>> Attached patch will fix the issue by using another variable than the
>> original $pref to apply stdWrap processing before the wrap will be
>> applied if it is set.
>
> +1 after reading and testing. Attached v2 with CGL cleanup.
Since you are "at it", Francois: The reporter mentioned to this fix (bug
tracker) that "NO.after = </div>" was not working also (even with the
patch). Could you check that please? Thanks!
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list