[TYPO3-UG Denmark] version 3.8 til 4.04 problemer

Karsten kap at os.dk
Fri Jan 19 16:34:56 CET 2007


Hej liste

Har lige opdateret et site fra 3.8 til 4.0.4 som bruger automaketemplate.

Til at starte med gik det fint alt blev vist i FE men lige pludselig 
uden jeg havde rørt ved noget, bliver alle mine content elementer ikke 
vist mere. Min menu og breadcrumb trail bliver vist korrekt, så 
automaketemplate skulle virke, bare ikke på content området.

min opsætning som har virket fint i version 3.8 er her:

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

     # 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

     TD.all = 1
   }
}

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

page.stylesheet = myt-css.css

# mainnav cObject
lib.menu_1 = HMENU
lib.menu_1.entryLevel = 0
   # First level menu-object, textual
lib.menu_1.1 = TMENU
lib.menu_1.1 {
# Normal state properties
   NO.allWrap = <img src="uploads/tf/menu_sep.jpg" /><div 
class="menu1-level1-no">  | </div>
     # Enable active state and set properties:
   ACT = 1
   ACT.allWrap = <img src="uploads/tf/menu_sep.jpg" /><div 
class="menu1-level1-act">  | </div>
  }
# Second level menu-object, textual
lib.menu_1.2 = TMENU
lib.menu_1.2 {
     # Normal state properties
   NO.allWrap = <div class="menu1-level2-no">&nbsp;   | </div>
     # Enable active state and set properties:
   ACT = 1
   ACT.allWrap = <div class="menu1-level2-act">&nbsp;  |  </div>
}

# breadcrumb cObject
temp.breadcrumb = HMENU
temp.breadcrumb.special = rootline
temp.breadcrumb.special.range = 0|-1
temp.breadcrumb.special.targets.3 = page
temp.breadcrumb.1 = TMENU
temp.breadcrumb.1.target = _top
temp.breadcrumb.1.wrap = |
temp.breadcrumb.1.NO {
linkWrap = | &raquo;&nbsp;
}

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


# 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


# Substitute the ###mainmenu### subpart with dynamic menu:
subparts.mainmenu < lib.menu_1

# Substitute the ###content_left### subpart with :
   subparts.contentleft < styles.content.getLeft
   subparts.contentleft.stdWrap.required = 1
   subparts.contentleft.renderObj.stdWrap.wrap=<div 
class="contentpageleft_div"> | </div>


# Substitute the ###contentmain### subpart with :
   subparts.contentmain< styles.content.get
  subparts.contentmain.stdWrap.required = 1
  subparts.contentmain.renderObj.stdWrap.wrap=<div 
class="contentpage_div"> | </div>


# Substitute the ###content_right### subpart with :
   subparts.contentright < styles.content.getRight
   subparts.contentright.stdWrap.required = 1
    subparts.contentright.renderObj.stdWrap.wrap=<div 
class="contentright_div"> | </div>

# Substitute the ###content_border### subpart with :
  subparts.contentborder < styles.content.getBorder
  subparts.contentborder.stdWrap.required = 1
  subparts.contentborder.renderObj.stdWrap.wrap=<div 
class="contentborder_div"> | </div>


# Substitute the ###searchbox### subpart with :
     subparts.search_box < plugin.tx_macinasearchbox_pi1

# Substitute the ###breadcrumb### subpart with breadcrumb trail:
   subparts.breadcrumb < temp.breadcrumb

}

# 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

page.10.subparts.content. =
page.10.subparts.content.value = CONTENT


Karsten



More information about the TYPO3-UG-denmark mailing list