[TYPO3-english] Boring TS warning
Xavier Perseguers
typo3 at perseguers.ch
Tue Dec 30 11:55:40 CET 2008
Hi,
I create one my menu with following TS:
lib.menu.internal.20.1 = TMENU
lib.menu.internal.20.1 {
// snip
NO {
wrapItemAndSub = <li class="level-1">|</li>
ATagParams = class="level-1"
ATagTitle.field = description // abstract // title
}
CUR < .NO
CUR = 1
CUR {
wrapItemAndSub = <li class="level-1 last_child">|</li>
ATagParams = class="current level-1"
}
// snip
}
and then
lib.menu.internal.20.2 < lib.menu.internal.20.1
lib.menu.internal.20.2 {
NO {
wrapItemAndSub = <li class="level-2">|</li>
ATagParams = class="level-2"
}
CUR < .NO
CUR = 1
CUR {
wrapItemAndSub = <li class="level-2 last_child">|</li>
ATagParams = class="current level-2"
}
// snip
}
This works great but I have a few warning in TS browser:
Object copied in this line "CUR < .NO" would leave either the value or
properties untouched in TypoScript Version 1. Please check that this is
not a problem for you.
This occurs for all objects I copy in lib.menu.internal.20.2 and further
(thus the first CUR < .NO in .20.1 is OK for TS browser).
I guess the warning is issued because I copy structure from .20.1 in
.20.2 and I copy definition of .20.2.NO to .20.2.CUR and there might be
an issue with this syntax in TS v.1 that might copy .20.1.CUR instead.
Questions:
- Is there a way to deactivate those warnings?
- How should I write my code to prevent those warnings?
I do not feel good with warnings even if I know it's OK...
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
More information about the TYPO3-english
mailing list