[TYPO3-UG NRW] Typo3 6.2 Template Verzweiflung

Jens Dinspel j+typo3 at dinspel.com
Sun Sep 7 10:59:53 CEST 2014


Hallo,

irgendwie bin ich etwas am verzweifeln und komme mit den Templates nicht
weiter.
Ich habe mir nun mehrere How Tos durchgelesen und bekomme einfach kein
Template zum laufen. Weder mit Markern noch mit Fluid.
Was funktioniert ist ein Text aus dem Typo Script auszugeben aber beim
Content streikt er.

Hier mal das Beispiel, welches ich ausprobiert habe.

page=PAGE
page{
     typeNum=0
     10=FLUIDTEMPLATE
     10{
         template=FILE
         template.file=fileadmin/templates/MyTemplate.html

         variables{
           mylabel=TEXT
           mylabel.value=LabelcomingfromTypoScript!
         }

         settings{
            # Get the copyright year from a TypoScript constant.
            copyrightYear={$year}
        }
       lib.content0<styles.content.get

       lib.content1<styles.content.get
       lib.content1.select.where=colPos=1

       lib.content2<styles.content.get
       lib.content2.select.where=colPos=2
    }
}

# Assign the Template files with the Fluid Backend-Template
page.10.file.stdWrap.cObject=CASE
page.10.file.stdWrap.cObject{
  key.data=levelfield:-1,backend_layout_next_level,slide
  key.override.field=backend_layout

  # Set the default Template, our 3 column Template
  default=TEXT
  default.value=fileadmin/templates/threeColumn.html

  # Set also the first [2] Template, our 3 column Template
  2=TEXT
  2.value=fileadmin/templates/threeColumn.html

  # Set a second [3] Template, our full size Template
  3=TEXT
  3.value=fileadmin/templates/fullSize.html
}


In den Template Files sind die passenden Objekte definiert.

zB.
<div class="wrapper">
     <article>
         <f:cobject typoscriptobjectpath="lib.content0">
    </article>
    <aside>
        <f:cObject typoscriptObjectPath="lib.content1">
    </aside>
    <footer>
        My footer content here.
    </footer>
</div>


-- 
----
Mit freundlichen Grüßen
Jens Dinspel
mailto:j at dinspel.com
Public-Key
Schlüssel-Kennung: A4AC7C48
Fingerabdruck: B01724CAF1666426E9495137DCEAE461A4AC7C48



More information about the TYPO3-nrw mailing list