Zum Inhalt springen

Nur ein Marker ansprechbar

Erstellt am 23. Mai 2007 · 2 Antworten · letzte Antwort am 24. Mai 2007

Tags: Frage

miami ·

Hallo!

Ich verwende den Template Selector + Automaketemplate.
Habe eine main_template.html und 5 versch. sub_templates_farbe.html
Die Pfad-Angaben müssten stimmen, so oft habe ich sie schon überprüft.
Mein Problem ist jetzt:
Wenn ich im TS das MENUE auskommentiere zeigt es mir den Inhalt an und die SUBNAVIGATION funktioniert.
Wenn ich es drin lasse, zeigt es mir dann in der Browser-Ansicht nur ###INHALT### an.
Auch die Template-Auswahl über die Seiteneigenschaften funktioniert einwandfrei.

Hat jemand eine Idee woran das liegen könnte?
Vielen Dank für eure Hilfe!

Nachfolgend noch meine Codes:

Mein Typo-Script Code:

seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/formate.css
seite.10 = TEMPLATE
seite.10 { 
   template = FILE
   template.file = fileadmin/template/main/main_template.html
   
   marks.MENUE = HMENU
   marks.MENUE {
         entryLevel = 0
         #wrap = |
         special = directory
         special.value = 1
         1 = GMENU
         1.NO = 1
         1.NO {
         XY = 109,18
         10 = IMAGE
         10 {
            file.import.field = media
            file.import = {$menpath}
            file.import.listNum = 0
         }
         100 = TEXT
         100 {
            text.field = title
            fontFile = fileadmin/arialbd.ttf
            fontSize = 10
            fontColor = white
            offset = 10,14
            #wrap = <br /> | 
         }
         1.ACT < .1.NO
         1.ACT = 1
         1.ACT {
            10.file.import.listNum = 1
         } 
   }
   
   marks.INHALT = TEMPLATE
   marks.INHALT {
      template =< plugin.tx_automaketemplate_pi1
      template.content.templateType = sub
   
      marks.INHALT_NORMAL <styles.content.get
      marks.SUBNAVIGATION = HMENU
      marks.SUBNAVIGATION.entryLevel = 1
      marks.SUBNAVIGATION.1 = TMENU
      marks.SUBNAVIGATION.1.expAll = 0
      marks.SUBNAVIGATION.1.NO {
         10 = TEXT
         10.text.field = title
         10.fontFile = fileadmin/arial.ttf
         10.fontSize = 8
         10.offset = 10,14
         #wrap = <br /> |  
      }      
   }      
}

##################FORMULARE##########################################################################

#tt_content.mailform.20.labelWrap.wrap = <div style="width:100px;float:left;">|</div>
#tt_content.mailform.20.REQ.labelWrap.wrap = <div style="width:100px;float:left;">|</div>
#tt_content.mailform.20.stdWrap.wrap = <fieldset style="border:0px;"> | </fieldset>

#tt_content.mailform.20.goodMess = Vielen Dank für Ihre Anfrage, wir werden uns so schnell wie möglich bei Ihnen melden!
#tt_content.mailform.20.badMess = Folgende Felder sind Pflichtfelder


####################TEMPLATESELECTOR############################################################

plugin.tx_rlmptmplselector_pi1 {
   templateType = main

   templatePathMain = fileadmin/template/main/
   templatePathSub = fileadmin/template/sub/

   defaultTemplateFileNameMain = main_template.html
   defaultTemplateFileNameSub = sub_template_gruen.html
}
plugin.tx_automaketemplate_pi1.content < plugin.tx_rlmptmplselector_pi1

Meine main_template.html

<body>
<div id="Layer2" style="position:absolute; left:251px; top:80px; width:559px; height:18px; z-index:2">###MENUE###</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> </td>
    <td width="780"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="780"><img src="fileadmin/bilder/header/head_ohne_navigation.jpg" width="780" height="72" alt="" /></td>
      </tr>
      <tr>
        <td width="780"><div align="right">
          </div></td>
      </tr>
      <tr>
        <td width="780" height="18"> </td>
      </tr>
      <tr>
        <td width="780" id="inhalt">###INHALT###</td>
      </tr>
      <tr>
        <td background="fileadmin/bilder/background/back_unten.jpg"></td>
      </tr>
    </table></td>
    <td> </td>
  </tr>
</table>
<div id="Layer1" style="position:absolute; left:796px; top:80px; width:222px; height:18px; z-index:1">
  <div align="right"><img src="fileadmin/bilder/header/originale/head_ende_navigation.png" width="239" height="18" alt="" /></div>
</div>
</body>

Eine sub_template_farbe.html

<table width="780" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="fileadmin/bilder/header/balken_gelb.jpg">###SUBNAVIGATION###</td>
  </tr>
  <tr>
    <td background="fileadmin/bilder/background/back_gelb.jpg">###INHALT_NORMAL###</td>
  </tr>
</table>
Chumper ·

Du hast meine ich nach MENU eine schließende Klammer zuwenig:
nimm mal das hier:

seite = PAGE
seite.typeNum = 0
seite.stylesheet = fileadmin/formate.css
seite.10 = TEMPLATE
seite.10 {
   template = FILE
   template.file = fileadmin/template/main/main_template.html
   
   marks.MENUE = HMENU
   marks.MENUE {
         entryLevel = 0
         #wrap = |
         special = directory
         special.value = 1
         1 = GMENU
         1.NO = 1
         1.NO {
         XY = 109,18
         10 = IMAGE
         10 {
            file.import.field = media
            file.import = {$menpath}
            file.import.listNum = 0
         }
         100 = TEXT
         100 {
            text.field = title
            fontFile = fileadmin/arialbd.ttf
            fontSize = 10
            fontColor = white
            offset = 10,14
            #wrap =  |
         }
}
         1.ACT < .1.NO
         1.ACT = 1
         1.ACT {
            10.file.import.listNum = 1
         }
   }
   
   marks.INHALT = TEMPLATE
   marks.INHALT {
      template =< plugin.tx_automaketemplate_pi1
      template.content.templateType = sub
   }
      marks.INHALT_NORMAL <styles.content.get
      marks.SUBNAVIGATION = HMENU
      marks.SUBNAVIGATION.entryLevel = 1
      marks.SUBNAVIGATION.1 = TMENU
      marks.SUBNAVIGATION.1.expAll = 0
      marks.SUBNAVIGATION.1.NO {
         10 = TEXT
         10.text.field = title
         10.fontFile = fileadmin/arial.ttf
         10.fontSize = 8
         10.offset = 10,14
         #wrap =  | 
      }     
        
}