Zum Inhalt springen

Rootline / Breadcrumbs HILFE! Anfänger verzweifelt...

Erstellt am 10. November 2004 · 2 Antworten · letzte Antwort am 11. November 2004

Tags: Frage

CrocodileR ·

Hallo zusammen, ich bin kruz vorm Verzweifeln.

Wer kann mir sagen warum es mit meinen Breadcrumbs nicht funzt? Ich glaube, ich bin zu doof...

Hier der Code:

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html

   # Here we define which elements in the HTML that 
   # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title


    DIV.all = 1

  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}

# breadcrumb
temp.rootline = HMENU
temp.rootline {
  special = rootline
  # Zahl vor dem | gibt an von welchem Knoten aus gearbeitet wird
  special.range = 2|-1
  1 = TMENU
  1.target = _self
  1.wrap = <p> | </p>
  1.NO.linkWrap = &nbsp;&gt; |
  1.NO.ATagParams = class="breadlink"
}


# Benoetigte Libaries einfuegen
   page.includeLibs.tmenu_layers = media/scripts/tmenu_layers.php


# Menu cObject
temp.menu = HMENU

   ################
   # MENU EBENE 1 #
   ################
     # Ebene 1 erzeugen
     temp.menu.1 = TMENU_LAYERS
     # Eigenschaften Ebene 1
     temp.menu.1 {

                layerStyle = position:absolute;VISIBILITY:hidden;

                # Menu verankern, damit es nicht der Maus folgt
                lockPosition = y

                # Position wo sich die naechste Ebene oeffnen soll (Ebene 2)
                relativeToParentLayer=1
                relativeToTriggerItem=1
                topOffset=70
                leftOffset=150
                # Angabe wann sich die naechste Ebene wieder schliessen soll
                hideMenuWhenNotOver = 50
                hideMenuTimer = 70

                # alle Menuepunkte anzeigen
                expAll=1

                # Darstellung der aktuellen Ebene
                wrap = <table width="150" border="0" cellspacing="0" cellpadding="0" class="menu1_main">|</table>
                # Darstellung im Normalmodus
                NO {
                    allWrap = <tr height="22"><td class="menu1_main"> | </td></tr>
                   }
                # Darstellung wenn Aktiv
                ACT = 1
                ACT {
                     allWrap =  <tr height="22"><td class="menu1_main_act"> | </td></tr>
                     }

                # Ende Ebene 1
                }


   ################
   # MENU EBENE 2 #
   ################
     # Ebene 2 erzeugen
     temp.menu.2 = TMENU_LAYERS
     # Eigenschaften Ebene 2
     temp.menu.2 {

                layerStyle = position:absolute;VISIBILITY:hidden;

                # Menu verankern, damit es nicht der Maus folgt
                lockPosition = x

                # Position wo sich die naechste Ebene oeffnen soll (Ebene 2)
                relativeToParentLayer=2
                relativeToTriggerItem=2
                topOffset=0
                leftOffset=157


                # alle Menuepunkte anzeigen
                expAll=1

                # Darstellung der aktuellen Ebene
                wrap = <table border="0" cellspacing="0" cellpadding="0">|</table>
                # Darstellung im Normalmodus
                NO {
                    allWrap = <tr><td class="menu1_main2"> |</td><td bgcolor="#CCEBCC" valign="bottom"><img src="fileadmin/template/main/images/leer.gif"></td></tr>
                   }
                # Darstellung wenn Aktiv
                ACT = 1
                ACT {
                     allWrap =  <tr><td class="menu1_main2_act"> |</td><td bgcolor="#CCEBCC" valign="bottom"><img src="fileadmin/template/main/images/leer.gif"></td></tr>
                    }
                # Darstellung fuer Unterpunkte mit Subpunkten
                IFSUB = 1
                IFSUB {
                     allWrap =  <tr><td class="menu1_main2"> |</td><td bgcolor="#CCEBCC" valign="bottom"><img src="fileadmin/template/main/images/pfeilchen1.gif"></td></tr>
                   }

                # Ende Ebene 2
                } 


   ################
   # MENU EBENE 3 #
   ################
     # Ebene 3 erzeugen
     temp.menu.3 = TMENU_LAYERS
     # Eigenschaften Ebene 3
     temp.menu.3 {

                layerStyle = position:absolute;VISIBILITY:hidden;

                # Menu verankern, damit es nicht der Maus folgt
                lockPosition = x

                # Position wo sich die naechste Ebene oeffnen soll (Ebene 3)
                relativeToParentLayer=3
                relativeToTriggerItem=3
                topOffset=50
                leftOffset=240


                # alle Menuepunkte anzeigen
                expAll=1

                # Darstellung der aktuellen Ebene
                wrap = <table border="0" cellspacing="0" cellpadding="0">|</table>
                # Darstellung im Normalmodus
                NO {
                    allWrap = <tr><td class="menu1_main2"> |</td><td bgcolor="#CCEBCC" valign="bottom"><img src="fileadmin/template/main/images/leer.gif"></td></tr>
                   }
                # Darstellung wenn Aktiv
                ACT = 1
                ACT {
                     allWrap =  <tr><td class="menu1_main2_act"> |</td><td bgcolor="#CCEBCC" valign="bottom"><img src="fileadmin/template/main/images/leer.gif"></td></tr>
                    }
                # Darstellung fuer Unterpunkte mit Subpunkten
                IFSUB = 1
                IFSUB {
                     allWrap =  <tr><td class="menu1_main2"> |</td><td bgcolor="#CCEBCC" valign="bottom"><img src="fileadmin/template/main/images/pfeilchen1.gif"></td></tr>
                   }

                # Ende Ebene 3
                } 
        


# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

# Substitute the ###menu### subpart with dynamic menu:
  subparts.menu < temp.menu

    # Substitute the ###content### subpart with content:

  subparts.content < styles.content.get

}
 

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}
 

# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate


# Copying the content from TEMPLATE for <head>-section:

page.headerData.10  < temp.headTemplate

Und hier noch mein Template:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="res/stylesheet.css" rel="stylesheet" type="text/css">
</head>

<body marginheight="0" marginwidth="0">
<!-- Header image row: -->
<div id="top">
 <div id="logo">
	<img src="images/toplogo.gif" alt="Meine Testseite">
 </div>
 <div id="header">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="400" height="68">
      <param name="movie" value="fileadmin/template/main/images/test.swf">
      <param name="quality" value="high">
      <embed src="fileadmin/template/main/images/test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="68"></embed>
  </object>
 </div>
</div>
<!-- Menu table cell: -->
<div id="left">
  <div id="menu">
<div class="menu1-level1-no"><a href="#">Startseite</a></div>
<div class="menu1-level1-no"><a href="#">Infos</a></div>
<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
  </div>
  <div id="wappen">
    <img src="images/wappen.gif">
  </div>
</div>
<!-- Page content: -->
<div id="content">
<!-- rootline: -->
<div id="rootline">
<p>ROOTLINE
</div>
<p>Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. Dies ist ein Test. </p>
</div>
</body>
</html>

Ich bin echt kurz vor einem Nervenzusammenbruch. o.O :x #evil#

Vielen Dank schonmal für eure Hilfe!

CrocodileR ·

Hi nochmal,

ich hab den Fehler gefunden. Ich hatte den Subpart "rootline" (<div class="rootline">...) innerhalb des "content" Subparts stecken, so dass der automaketemplate-parser das nicht substituieren konnte.

Jetzt habe ich das "rootline"-div vor das "content"-div gesetzt und es funktioniert.