[TYPO3-core] RFC bug #17360: beforeWrap property of TMENU is not recognized anymore

François Suter fsu-lists at cobweb.ch
Tue Feb 1 11:53:05 CET 2011


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.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17360_v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110201/e9da5137/attachment.txt>


More information about the TYPO3-team-core mailing list