Zum Inhalt springen

Menü wird nicht vererbt

Erstellt am 23. Februar 2010 · 3 Antworten · letzte Antwort am 24. Februar 2010

Tags: Frage

w52 ·

hallo,

ich befasse mich seit kuzem mit typo3 und bin gerade dabei, eine website aufzubauen. auf meinem lokalen server hat auch alles super geklappt, aber wenn ich nun die seite auf dem webserver aufbauen möchte, werden die beiden menüs (oben und links) leider nicht auf die unterseiten von root vererbt. auf root werden sie ganz normal dargestellt, auf allen adneren aber gar nicht. kann mir jemand helfen, woran es liegen könnte?

hier noch mein setup:

page = PAGE

plugin.tx_indexedsearch.show.rules = 0


page {
  typeNum = 0
  stylesheet = fileadmin/template/styles.css
  includeCSS {
    file1 = fileadmin/template/news_styles.css
  }
   
   
  config.language = de
  config.locale_all = de_DE
  config.index_enable = 1
  config.cache = 1
   
   
   
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/template/dummy.html
  10.workOnSubpart = DOKUMENT
  10.marks {
     
     
    CONTENT1 = CONTENT
    CONTENT1 {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 0
      wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
    }
     
    CONTENT2 = CONTENT
    CONTENT2 {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 2
    }
     
     
    SEARCHBOX >
    SEARCHBOX < plugin.tx_macinasearchbox_pi1
    SEARCHBOX.pidSearchpage = 17
    SEARCHBOX.templateFile = fileadmin/template/searchbox.htm
     
     
    NAVI1 = HMENU
    NAVI1 {
      special = directory
      special.value = 3
      entryLevel = 1
      wrap = <div id="navi-oben">|</div>
      1 = TMENU
      1 {
        wrap = <ul>|</ul>
        noBlur = 1
        NO = 1
        NO {
          wrapItemAndSub = <li>|</li>
        }
        ACT = 1
        ACT {
          doNotLinkIt = 1
          wrapItemAndSub = <li><span class="aktiv">|</span></li>
        }
      }
    }
     
    NAVI2 = HMENU
    NAVI2 {
      special = directory
      special.value = 2
      wrap = <div id="navi-links">|</div>
      1 = TMENU
      1 {
        wrap = <ul>|</ul>
        noBlur = 1
        NO = 1
        NO {
          wrapItemAndSub = <li>|</li>
        }
        ACT = 1
        ACT {
                            #doNotLinkIt = 1
                            #allWrap = <span class="aktivsub">|</span>
          ATagParams = class="aktuell"
          wrapItemAndSub = <li>|</li>
        }
        ACTIFSUB = 1
        ACTIFSUB {
                                 #doNotLinkIt = 1
                                 #allWrap = <span class="aktivsub">|</span>
          wrapItemAndSub = <li>|</li>
          ATagParams = class="aktuell"
        }
      }   
      2 < .1
                  #2.ACT.stdWrap.wrap  = <span class="aktivsub2">|</span>
                  #2.NO.wrapItemAndSub = <li>|</li>  
    }
     
     
     
    BREADCRUMB = HMENU
    BREADCRUMB {
      special = rootline
      special.range = 1|-1
      1 = TMENU
      1 {
        NO.linkWrap = | >
        NO.stdWrap2.noTrimWrap = | | |
        NO.ATagParams = class="breadcrumb"
        CUR < .NO
        CUR = 1
        CUR {
          linkWrap = |
          doNotLinkIt = 1
        }
      }
    }
  }
}

EDIT: ich hab festgestellt, dass wenn ich "seite verbergen" und "im menü verbergen" bei der root-seite deaktiviere, wird auch hier das menü nicht angezeigt...sehr seltsam

w52 ·

keienr eine idee, woran es liegen könnte? hab das menü wie im tutorial erstellt und dann halt entsprechend erweitert, also eigentlich sollte es doch funktionieren...hat es ja auch auf meinem lokalen server 😢

ich hab übrigens festgestellt, dass auch das suchformular (macina_searchbox + indexed_search) nur auf der root-seite funktioniert, auf allen adneren wird es zwar ordnungsgemäß angezeigt, sucht aber nicht.
auch das "Preview"-symbol oben rechts wird nur auf der root-seite bzw auf der seite, bei der ich als erstes ansehen/speichern&ansehen mache angezeigt, auf allen adneren nicht mehr.

Cretection ·

Ich schaue es mir nachher mal an :-) Schick mir mal wenn möglich nen Screen vom Seitenbaum und FrontEnd.

Aber ein kleiner Tipp:

Dein Art auf den Content zuzugreifen ist veraltet bzw. old School:

Veraltet:

CONTENT1 = CONTENT
    CONTENT1 {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 0
      wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
    }
     
    CONTENT2 = CONTENT
    CONTENT2 {
      table = tt_content
      select.orderBy = sorting
      select.where = colPos = 2
    }

Seit TYPO3 4.0:

CONTENT1 < styles.content.get
CONTENT2 < styles.content.getRight
w52 ·

danke für die hilfe, aber inzwischen konnt ich das problem selbst lösen 😃

habs halt so gemacht, wie ich es im tutorial gelner habe, aber danke für den hinweiß, spaart nochmals ein paar zeilen ts.

falls es noch wen wegen dem menü interessiert, hier ist mein funktionierendes setup:

page = PAGE

plugin.tx_indexedsearch.show.rules = 0


page {
  typeNum = 0
  stylesheet = fileadmin/template/styles.css
  includeCSS {
    file1 = fileadmin/template/news_styles.css
  }
   
   
  config.language = de
  config.locale_all = de_DE
  config.index_enable = 1
  config.cache = 1
  config.disablePrefixComment = 1 
  config.simulateStaticDocuments = 0
  config.baseURL = http://typo3.xxxxx.mittwaldserver.info/
  config.tx_realurl_enable = 1
   
   
  10 = TEMPLATE
  10.template = FILE
  10.template.file = fileadmin/template/dummy.html
  10.workOnSubpart = DOKUMENT
  10.marks {
     
     
    CONTENT1< styles.content.get
    CONTENT1.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
    
     
    CONTENT2< styles.content.getRight
    
     
    SEARCHBOX >
    SEARCHBOX < plugin.tx_macinasearchbox_pi1
    SEARCHBOX.pidSearchpage = 17
    SEARCHBOX.templateFile = fileadmin/template/searchbox.htm
     
     
    NAVI1 = HMENU
    NAVI1 {
      special = directory
      special.value = 3
      entryLevel = 1
      wrap = <div id="navi-oben">|</div>
      1 = TMENU
      1 {
        wrap = <ul>|</ul>
        noBlur = 1
        NO = 1
        NO {
          wrapItemAndSub = <li>|</li>
        }
        ACT = 1
        ACT {
          doNotLinkIt = 1
          wrapItemAndSub = <li><span class="aktiv">|</span></li>
        }
      }
    }
     

    NAVI2 = HMENU
    NAVI2 {
      special = directory
      entryLevel = 1
      special.value = 2
      wrap = <div id="navi-links">|</div>
      1 = TMENU
      1 {
        wrap = <ul>|</ul>
        noBlur = 1
        NO = 1
        NO {
          wrapItemAndSub = <li>|</li>
        }
        ACT = 1
        ACT {
          ATagParams = class="aktuell"
          wrapItemAndSub = <li>|</li>
        }
        ACTIFSUB = 1
        ACTIFSUB {
          wrapItemAndSub = <li>|</li>
          ATagParams = class="aktuell"
        }
      }   
      2 < .1
    }
  
     
    BREADCRUMB = HMENU
    BREADCRUMB {
      special = rootline
      special.range = 1|-1
      1 = TMENU
      1 {
        NO.linkWrap = | >
        NO.stdWrap2.noTrimWrap = | | |
        NO.ATagParams = class="breadcrumb"
        CUR < .NO
        CUR = 1
        CUR {
          linkWrap = |
          doNotLinkIt = 1
        }
      }
    }
  }
}