Zum Inhalt springen

automaketemplate + mehrsprachigkeit

Erstellt am 29. März 2010 · Noch keine Antworten

Tags: Templates & Layouts, Frage

niels05 ·

Ein kräftiges Hallo an alle, ich habe eine Seite (http://intrama2.vege.net) mit dem plugin.tx_automaketemplate erstellt, alles super, jetzt wollte ich die Seite zweisprachig anlegen, im Backend klappt alles super, im frontend passiert aber nichtst, wenn ich die enlische Version anklicke, ich würde mich über Hilfe sehr freuen, hier des setup:

config {
  locale_all = de_DE
  language = de
  sys_language_uid = 0
  sys_language_mode = content_fallback
  
  simulateStaticDocuments_noTypeIfNoTitle = 3
  
  linkVars = L
  uniqueLinkVars = 3
  
  index_enable = 3
  index_externals = 3
}
page = PAGE
page.typeNum = 0
page.meta.DESCRIPTION = INTRAMA
page.meta.KEYWORDS = Verarbeitung, Verpackung & Vermarktung von Lebensmitteln, Systemlösungen aus Maschienen, Verbrauchsmaterial & Dienstleistungen
page.headerData.1 = TEXT
page.headerData.1.value (
  <script type="text/javascript" src="fileadmin/template/main/scripts/menu.js"></script>
)

page.includeCSS {

  file1 = fileadmin/template/main/res/stylesheetb.css
  file2 = fileadmin/template/main/res/tt_news_template.css

}

page.10 < plugin.tx_rlmptmplselector_pi1
temp.contentArea = TEMPLATE
temp.contentArea {
   
template < plugin.tx_automaketemplate_pi1
template.content.templateType = sub
template.content.defaultTemplateFileName = ct_3.html
template.relPathPrefix = fileadmin/template/sub/
template.elements >
template.elements {
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title, style

    DIV.all = 1
    TD.all = 1
  }

   
  workOnSubpart = contentsection
  
  subparts {
  colNormal < styles.content.get
  colNormal{
        wrap = <!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->
        table = tt_content
        # renderObj =< my_content
        select {
          where = colPos=0
          orderBy = sorting
          languageField = sys_language_uid
        }
      }
  colLeft < styles.content.getLeft
  colRight < styles.content.getRight
    
    
}
}

temp.headTemplate = TEMPLATE
temp.headTemplate {
    
  template =< plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_HEADER
}

temp.headTemplateCA = TEMPLATE
temp.headTemplateCA {

template < temp.contentArea.template
    workOnSubpart = DOCUMENT_HEADER
}


plugin.tx_automaketemplate_pi1.content < plugin.tx_rlmptmplselector_pi1
plugin.tx_rlmptmplselector_pi1 {

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

     
   defaultTemplateFileNameMain = layout2.html
   defaultTemplateFileNameSub = ct_1.html

      inheritMainTemplates = 1
    inheritSubTemplates = 1
}




temp.mainTemplate = TEMPLATE
temp.mainTemplate {
   
  template =< plugin.tx_automaketemplate_pi1
   
  workOnSubpart = DOCUMENT_BODY
subparts.flaggen =< lib.langMenu
   subparts.menu < temp.menu
   subparts.menu_2 < temp.menu_2
   subparts.breadcrumbs < temp.breadcrumbs
   subparts.content < styles.content.get
  subparts.content < temp.contentArea
  
  
  
  
   subparts.slogan = CONTENT
    subparts.slogan {
           table = tt_content
          select.pidInList = 67
          select.orderBy = sorting
         select.languageField = sys_language_uid

                  }
     subparts.Trailer = IMAGE
   subparts.Trailer.file = GIFBUILDER
   subparts.Trailer.file {
     XY = 900, 200
     backColor = #FFFFFF
        
        10 = IMAGE
        10.file = fileadmin/template/main/images/top3.jpg
          10.file.import = uploads/media/
            10.file.import.data = levelmedia:-1, slide
         10.file.import.listNum = 0
          10.file.width = 900
          10.offset = 0,-100
     
           20 = IMAGE
          20.file = GIFBUILDER
          20.file.backColor = #FFFFFF
          20.file.XY = 900,200
          20.mask = fileadmin/template/main/images/mask.jpg
     
   
          30 = TEXT
          30.text.field = subtitle // title
          30.fontFile = fileadmin/fonts/GeosansLight.ttf
          30.fontSize = 28
          30.fontColor = #3c3c3c
          30.niceText = 0
          30.offset = -30, 180
          30.align = right

}
          
}


lib.langMenu = HMENU
lib.langMenu {
  special = language
  special.value = 0,3

  1 = GMENU
  1 {
    NO = 1
    NO {
      XY = [5.w]+4, [5.h]+4
      backColor = white
      5 = IMAGE
      5.file = media/flags/flag_de.gif || media/flags/flag_uk.gif
      5.offset = 2, 2
    }
    ACT < .NO
    ACT.backColor = white
    
    USERDEF1 < .NO
    USERDEF1.5.file = media/flags/flag_de_d.gif || media/flags/flag_uk_d.gif
    USERDEF1.noLink = 1
  }
}


[globalVar = GP:L=1]
subparts.breadcrumbs.10.value = Home
config {
  locale_all = en_EN
  language = en
  sys_language_uid = 3
}
[global]




tt_content.image.20.captionSplit = 1
tt_content.image.20.captionSplit = 0


Header1 = IMAGE
Header1 {
  wrap = <h2>|</h2>
  file = GIFBUILDER
  file {
   XY = [10.w]+5,26
   transparentColor = #ffffff
   backColor = #ffffff
   10 = TEXT
   10.text.field =
   10.text.current = 1
   10.fontSize = 20
   10.offset = 0,20
   10.fontFile = fileadmin/fonts/GeosansLight.ttf
   10.fontColor = #000000
   10.niceText = 0
  }
}











plugin.tx_automaketemplate_pi1.content.defaultTemplateFileName = template_2.html
page.10 < temp.mainTemplate
page.headerData.10  < temp.headTemplate
page.headerData.20  < temp.headTemplateCA




plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE




tt_content.mailform = COA
tt_content.mailform.10 = < lib.stdheader
tt_content.mailform.20 = FORM
tt_content.mailform.20 {
  layout = <div class="fieldwrapper">###LABEL### ###FIELD###</div>


  
  stdWrap.wrap = <div class="contactform">|</div>
  labelWrap.wrap = <span class="left">|</span>
  REQ.labelWrap.wrap = <span class="left">|</span>
  commentWrap.wrap = <span class="left">|</span>
  radioWrap.wrap = <span class="left">|</span>
  params >
  params.input = class="field"
  params.password = class="field"
  params.textarea = class="field"
  params.check = class="check"
  params.radio = class="field"
  params.select = class="combo"
  params.file = class="mf-file"
  params.reset = class="button"
  params.submit = class="button"
  badMess = Please check: / Bitte kontrollieren:
  target = _self
}











tt_content.stdWrap.innerWrap.cObject = CASE
tt_content.stdWrap.innerWrap.cObject {
  key.field = section_frame
  100 = TEXT
  100.value = <div class="mein-rahmen">|</div>
}
 
page.CSS_inlineStyle(
  .mein-rahmen { border:1px solid #333333;
                 padding-bottom:0px;
                  margin-bottom:0px;
  }
)



plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE














temp.menu = HMENU
temp.menu {
        special = directory
        special.value = 1
  maxItems = 10
        #excludeUidList =

  1 = TMENU
  1 {
    expAll = 1
    wrap = <ul id="nav">|</ul>
    noBlur = 1
    NO = 1
    NO {
    wrapItemAndSub = <li>|</li>
    ATagParams = class="link1"
    
    ATagTitle.field = description // title
    }

    ACT = 1
    ACT {
    wrapItemAndSub = <li class="active">|</li>
    ATagParams = class="link1"
    ATagTitle.field = description // title
    }

    IFSUB = 1
    IFSUB {
    wrapItemAndSub = <li>|</li>
    ATagParams = class="menuparent"
    ATagTitle.field = description // title
    }

    #ACTIFSUB < .IFSUB
    ACTIFSUB = 1
    ACTIFSUB {
    wrapItemAndSub = <li class="active">|</li>
    ATagParams = class="menuparent"
    ATagTitle.field = description // title
    }
  }

  2 = TMENU
  2 {
    expAll = 1
    wrap = <ul>|</ul>
    noBlur = 1
    NO = 1
    NO {
    wrapItemAndSub = <li>|</li>
    ATagParams = class="level2"
    ATagTitle.field = description // title
    }

    ACT = 1
    ACT {
    wrapItemAndSub = <li class="activesub">|</li>
    ATagParams = class="level2"
    ATagTitle.field = description // title
    }
  
    IFSUB = 1
    IFSUB {
    wrapItemAndSub = <li class="menuparent2">|</li>
    ATagParams = class="level2-menuparent"
    ATagTitle.field = description // title
    }
    
    #ACTIFSUB < .IFSUB
    ACTIFSUB = 1
    ACTIFSUB {
    wrapItemAndSub = <li class="activesub">|</li>
    ATagParams = class="level2-menuparent"
    ATagTitle.field = description // title
    }
  }


3 = TMENU
  3 {
    expAll = 1
    wrap = <ul>|</ul>
    noBlur = 1
    NO = 1
    NO {
    wrapItemAndSub = <li>|</li>
    ATagParams = class="level3"
    ATagTitle.field = description // title
    }

    ACT = 1
    ACT {
    wrapItemAndSub = <li class="activesub">|</li>
    ATagParams = class="level3"
    ATagTitle.field = description // title
    }
  
    IFSUB = 1
    IFSUB {
    wrapItemAndSub = <li class="menuparent3">|</li>
    ATagParams = class="level2-menuparent"
    ATagTitle.field = description // title
    }
    
    #ACTIFSUB < .IFSUB
    ACTIFSUB = 1
    ACTIFSUB {
    wrapItemAndSub = <li class="activesub">|</li>
    ATagParams = class="level2-menuparent"
    ATagTitle.field = description // title
    }
  }

  
}








temp.breadcrumbs = HMENU
temp.breadcrumbs {
special = rootline
special.range = 1|-1
1 = TMENU
1.noBlur = 1
1.wrap = <span class="rootline">|</span>
1.target = _self
1.NO {
    linkWrap= |
    #optionSplit: vor erstem item kein "/", sonst immer einer
    #allWrap = |*|<font face="Arial,Helvetica,sans-serif,sans-serif" size="1" color="yellow" class="rootline">| / </font>  |*| |*|
    # optionSplit: vor jedem item ein "/
 allWrap = |*| <img src="fileadmin/template/main/img/bg_bullet_arrow.gif" alt="" />  |*||*| |
     ATagBeforeWrap = 1
  }
}








temp.contentArea = TEMPLATE
temp.contentArea {
   
  template < plugin.tx_automaketemplate_pi1

   
  template.content.templateType = sub
  template.content.defaultTemplateFileName = ct_3.html

    
  template.relPathPrefix = fileadmin/template/sub/

   
  template.elements >
   
  template.elements {
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title, style

    DIV.all = 1
    TD.all = 1
  }

   
  workOnSubpart = contentsection
  
  subparts {
colNormal < styles.content.get
colLeft < styles.content.getLeft
colRight < styles.content.getRight
}
}