Zum Inhalt springen

Probleme mit mb_960gs-include

Erstellt am 21. Februar 2011 · 2 Antworten · letzte Antwort am 4. Juni 2011

Tags: Frage

normdew ·

Hallo zs.

Ich hab mir die mb_960gs_include installiert und habe dazu die Online-Documentation auch durchgelesen.

Doch ich komme einfach nicht klar. Im Frontend fehlen Content und Templatestruktur.

Vielen Dank für eure Mühe und Hilfe!

Anbei mein TS und das Test-Template:

page = PAGE
page {
  typeNum = 0
  meta.REFRESH =  60;
  meta.AUTHOR.field = author
  meta.KEYWORDS.field = keywords
  meta.DESCRIPTION.field = description  
  config {
    #cache ein/aus
    no_cache = 0
    doctype = html_5
    #doctypeSwitch = false
    xmlprologue = none
    locale_all = de_DE
    language = de
    htmlTag_langKey = de
    prefixLocalAnchors = all
    disablePrefixComment = false
    xhtml_cleaning = all
    message_page_is_being_generated = Seite wird erstellt!
    headerComment (Test)
    includeCSS {
      file1 = typo3conf/ext/mb_960gs_include/ressources/code/css/reset.css
      file2 = typo3conf/ext/mb_960gs_include/ressources/code/css/text.css
      file3 = typo3conf/ext/mb_960gs_include/ressources/code/css/960.css
   }    
}

bodyTag = <body>
includeCSS {
  file4 = fileadmin/templates/trygrid02/style.css
}

10 = TEMPLATE
10 {
  template = FILE  
  template.file = fileadmin/templates/trygrid02/template.html  
  workOnSubpart = MYBODY
  subparts.CONTENT < styles.content.get      
  marks {
    NAVIGATION < temp.menu
    BREADCRUMB < temp.breadcrumb    
  }    
}  

20 = TEXT
20 {
  field = SYS_LASTCHANGED
  date = d.m.Y
  noTrimWrap = |Letzte Änderung: |
  }
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  </head>
  <body>
  <!--###MYBODY###-->
    <div class="container_12 wrapperbg">
      <div class="grid_12 header">
        <p>HEADER: 940px</p>
      </div>
      <!-- end .grid_12 -->
      <div class="clear"></div>
      <div class="grid_9 content">
      ###CONTENT###
      </div>
      <div class="grid_3 border">
        <p>CONTENT: 220</p>
      </div>
      <!-- end .grid_3 -->
      <div class="clear"></div>
      <div class="grid_12 footer">
        <p>FOOTER: 940</p>
      </div>
      <!-- end .grid_12 -->
      <div class="clear"></div>
    </div>
  <!--###MYBODY###-->
  </body>
</html>

Und so sieht der Quelltext der Seite danach aus: leer nämlich; nur die Stylesheets und die meta-Angaben werden geladen.

<!DOCTYPE html>
<html lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2011 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
-->



<title>test</title>
<meta name="generator" content="TYPO3 4.5 CMS" />
<meta http-equiv="REFRESH" content="60;" />
<meta name="KEYWORDS" content="test typo3 usw" />
<meta name="DESCRIPTION" content="Eine Seite zu Typo3 Testzwecken ... description diesmal übers cms" />

<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_fad97d0aa7.css?1298110896" media="all" />
<link rel="stylesheet" type="text/css" href="typo3conf/ext/mb_960gs_include/ressources/code/css/reset.css?1298217292" media="all" />
<link rel="stylesheet" type="text/css" href="typo3conf/ext/mb_960gs_include/ressources/code/css/text.css?1298217292" media="all" />
<link rel="stylesheet" type="text/css" href="typo3conf/ext/mb_960gs_include/ressources/code/css/960.css?1298217292" media="all" />



<script src="typo3temp/javascript_93077bb238.js?1298100526" type="text/javascript"></script>



</head>
<body>



</body>
</html>
M.​Baldioli ·

Das Beispiel aus der Online-Doku ist falsch und dein Code ist es auch. Die Zeile mit "headerComment" muss eine Zuweisung sein. Also falsch ist:

page {
  ...
  config {
    ...
    headerComment (Test)
    ...
}

Richtig wäre

page {
  ...
  config {
    ...
    headerComment = (Test)
    ...
}

oder auch (fehlerhafte Zeile auskommentiert:

page {
  ...
  config {
    ...
#    headerComment (Test)
    ...
}

Davon abgesehen fehlt in deinem TS (und in der Online-Doku zur Extension ebenfalls) eine schließende geschweifte Klammer. Und weil z.B. "bodyTag" (und andere) eine Eigenschaft von PAGE ist, ergibt sich folgende Struktur:

page = PAGE
page {
  typeNum = 0
  ...
  config {
    ...
    headerComment = (Test)
    includeCSS {
      ...
    }    
  }
 
  bodyTag = <body>
  includeCSS {
    ...
  }
   
  10 = TEMPLATE
  10 {
    ...
    marks {
      ...
    }    
  }  
   
  20 = TEXT
  20 {
    ...
  }
}

Hoffe, das hilft. o.O

--
Michele Baldioli
- Websites mit TYPO3, Drupal, Joomla!
- Freelancer für Open Source CMS
- Web: www.baldioli.de
- Mail: info[at]baldioli[dot]de

normdew ·

Wow, :o ich hatte nicht mehr mit einer Antwort gerechnet! Danke! ich werd mir das mal in einer ruhigen Minute ansehen und drüber nachdenken! Dank Dir ehrlich!