[Typo3] CASE does'nt work

Francesco di Francia darksky77 at email.it
Sun Nov 13 21:31:36 CET 2005


Hi.
I'm building a typoscript object that i will use in templavoila. This 
object will create a special HMENU based on a keywords/smarttcode that 
it find in the keywords field of all page of the website ( example: 
#REVIEW#,#PREVIEW#,#GUIDES#,etc. )

But depending on the doc listed the layout should be different. So i use 
the CASE OBJECT. The case field is a value i insert in the SUBTITLE 
field od the page where i insert this typoscript object ( by templavoila ).
But the case seems not working.
Here's the code:

########## START DOCLIST ###########

lib.reviewlist = CASE
lib.reviewlist.key.data = subtitle
lib.reviewlist {
     #### CASE 1: Reviews ####
     1 = HMENU
     1 {
         special = keywords
         special.entrylevel = 0
         special.setKeywords = #REVIEW#
         1 = TMENU
         1.alternativeSortingField = subtitle asc
         1.NO {
             allWrap = <div class="list-row"><div 
class="gametitlecell"><b>|</b></div>
             stdWrap.field = subtitle
             allStdWrap.append = COA
             allStdWrap.append {
                 5 = HTML
                 5.value=<div class="ratecell">
                 10 = TEXT
                 10.data = field : abstract
                 12 = HTML
                 12.value=</div><div class="authorcell">
                 30 = TEXT
                 30.data = field : author
                 32 = HTML
                 32.value=</div><div class="datecell">
                 50 = TEXT
                 50.field = crdate
                 50.date = d-m-Y
                 52 = HTML
                 52.value=</div><div style="clear:left"></div></div>
                 }
         }
     1.1.wrap = <h3 align="center">Reviews</h3><div 
class="list-rowh"><div class="gametitlecell"><b>Titolo</b></div><div 
class="ratecell"><b>Rate</b></div><div 
class="authorcell"><b>Author</b></div><div 
class="datecellh"><b>Data</b></div><div style="clear:left"></div></div>|
     }

#### CASE 2: Previews ####
     2 = HMENU
     2 {
         special = keywords
         special.entrylevel = 0
	special.setKeywords = #PREVIEW#
         1 = TMENU
         1.alternativeSortingField = subtitle asc
         1.NO {
             allWrap = <div class="list-row"><div 
class="gametitlecell"><b>|</b></div>
             stdWrap.field = subtitle
             allStdWrap.append = COA
             allStdWrap.append {
                 5 = HTML
                 5.value=<div class="ratecell">
                 10 = TEXT
                 10.data = field : abstract
                 12 = HTML
                 12.value=</div><div class="authorcell">
                 30 = TEXT
                 30.data = field : author
                 32 = HTML
                 32.value=</div><div class="datecell">
                 50 = TEXT
                 50.field = crdate
                 50.date = d-m-Y
                 52 = HTML
                 52.value=</div><div style="clear:left"></div></div>
                 }
         }
     2.1.wrap = <h3 align="center">Recensioni</h3><div 
class="list-rowh"><div class="gametitlecell"><b>Titolo</b></div><div 
class="ratecell"><b>Voto</b></div><div 
class="authorcell"><b>Autore</b></div><div 
class="datecellh"><b>Data</b></div><div style="clear:left"></div></div>|
     }


}

etc. etc. etc.
########## ENDDOCLIST ###########

In the
lib.reviewlist.key.data = subtitle
i tried many combination such as:
lib.reviewlist = subtitle
lib.reviewlist.key = subtitle

Thanks for help


-- 
Net Wargaming Italia - La risorsa italiana per gli appassionati di 
wargame e strategici a turni
http://www.netwargamingitalia.net

info at netwargamingitalia.net
darksky at netwargamingitalia.net



More information about the TYPO3-english mailing list