|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
treeLevel problem, (am I right?)ellou' List!
I'm trying use a treeLevel to add some functions only on pages of certain level ... :) (that's natural) But... unfortunately it doesn't seems to work... As far as I can understand the following code should show the text before the main content (TEST OF...), and it does, but at EVERY level. Where am I wrong, did I miss something? My TS: multiNormal = COA multiNormal { [treeLevel = 5] 10 = TEXT 10.value = TEST OF TREELEVEL [global] 20 = CONTENT 20 { table = tt_content select.orderBy = sorting select.where = colPos = 0 select.languageField = sys_language_uid } } -- greets, Marcus 'biesior' Biesioroff _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: treeLevel problem, (am I right?)ellou' again
you wrote: > ellou' List! > I'm trying use a treeLevel to add some functions only on pages of > certain level ... :) (that's natural) > But... unfortunately it doesn't seems to work... Oh I recognized that below code is working. Is this correct??? Sorry for dumb questions, but I didn't use it yet and have no sure which way is correct (last one is working ;) ) : [treeLevel = 5] multiNormal = COA multiNormal { 10 = TEXT 10.value = TEST OF TREELEVEL 20 = CONTENT 20 { table = tt_content select.orderBy = sorting select.where = colPos = 0 select.languageField = sys_language_uid } } [else] multiNormal = COA multiNormal { 20 = CONTENT 20 { table = tt_content select.orderBy = sorting select.where = colPos = 0 select.languageField = sys_language_uid } } [global] -- greets, Marcus 'biesior' Biesioroff _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: treeLevel problem, (am I right?)Hi
If you read TS_syntax document it'll tell you that you can't use conditions while in the braces What I'd do is this: temp.multiNormal = COA temp.multiNormal { 20 = CONTENT 20 { table = tt_content select.orderBy = sorting select.where = colPos = 0 select.languageField = sys_language_uid } } [treeLevel = 5] temp.multiNormal.10 = TEXT temp.multiNormal.10.value = TEST OF TREELEVEL [global] Better yet I'd also not use the content method (unless you really need it) but instead I'd use the css_styled_content extension and do it this way: temp.multiNormal = COA temp.multiNormal { 20< style.content.get } [treeLevel = 5] temp.multiNormal.10 = TEXT temp.multiNormal.10.value = TEST OF TREELEVEL [global] hth Marcus Biesioroff wrote: > ellou' again > > you wrote: > >> ellou' List! > >> I'm trying use a treeLevel to add some functions only on pages of >> certain level ... :) (that's natural) > >> But... unfortunately it doesn't seems to work... > > > Oh I recognized that below code is working. Is this correct??? > > Sorry for dumb questions, but I didn't use it yet and have no sure > which way is correct (last one is working ;) ) > : > > [treeLevel = 5] > multiNormal = COA > multiNormal { > > 10 = TEXT > 10.value = TEST OF TREELEVEL > > 20 = CONTENT > 20 { > table = tt_content > select.orderBy = sorting > select.where = colPos = 0 > select.languageField = sys_language_uid > } > } > > [else] > > multiNormal = COA > multiNormal { > > 20 = CONTENT > 20 { > table = tt_content > select.orderBy = sorting > select.where = colPos = 0 > select.languageField = sys_language_uid > } > } > > [global] > > > > > > TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: treeLevel problem, (am I right?)ellou'
you wrote: > Hi > If you read TS_syntax document it'll tell you that you can't use > conditions while in the braces That's what I've missed ;) I was looking in TSRef but with no luck Thanks for suggestions, I've to do my lesson better! > What I'd do is this: > temp.multiNormal = COA > ... > Better yet I'd also not use the content method (unless you really need > it) but instead I'd use the css_styled_content extension and do it this way: > temp.multiNormal = COA > temp.multiNormal { > 20< style.content.get > ... -- greets, Marcus 'biesior' Biesioroff _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
| Free Forum Powered by Nabble | Forum Help |