Zum Inhalt springen

TemplateVoila und "normale" Marker im HTML-Template...

Erstellt am 3. November 2005 · 3 Antworten · letzte Antwort am 1. Januar 2006

Tags: Frage

davey ·

Hallo zusammen,

ich bin noch recht blutiger Anfänger, deshalb bitte nicht auslachen:

Ich habe mir ein einfaches HTML-Template zurechtgebastelt (http://tinnitus-taube.de/neu/fileadmin/templates/template.html) und mit TV gemappt. Das funktioniert auch echt klasse und einfach soweit! (-> http://tinnitus-taube.de/neu/)

Ich hätte jetzt gern z.B. eine Anzeige, wann die jeweils angezeigte Seite geändert wurde - und zwar so dass es auf jeder Seite erscheint (ebenso dann später einen Counter links unten usw.).

Ich weiss bisher dass ich dafür ein TypoScript-Schnipsel brauche - z.B. folgenden:

temp.letze_aenderung = TEXT
temp.letze_aenderung.field = SYS_LASTCHANGED
temp.letze_aenderung.date = j.m.Y
temp.letze_aenderung.wrap = Letzte Änderung: |

Ich dachte, dass ich jetzt im HTML-Template einen Marker (###EGAL###) einbaue, und dann sowas in der Art

marker.egal < temp.letze_aenderung

machen muss.

Aber irgenwie funktioniert das bei mir nicht - ich vermute, dass ich da was noch nicht richtig verstanden habe, v.a. weil ich mir nicht sicher bin wie das TemplateVoila mit der "alten" (?) Art Marker zu setzen zusammenspielt...

Ich wäre um jede Hilfe dankbar, da ich schon seit zwei Tagen rumprobiere und erfolglos Foren durchstöbere.

Davey

FrediL ·

Hallo!

Ich bin auch blutiger Anfänger und habe gerade genau das gleiche Problem. Mein Template, welches ich mit TemplateVoila erstellt habe, funktioniert einwandfrei. Nun möchte ich nachträglich noch einen Link für den Marker ###IMPRESSUM### einfügen. Leider ignoriert Typo3 alle Eingaben. Da ich wie gesagt noch Anfänger bin, habe ich Angst jetzt einfach ein bisschen auszuprobieren, da ich nicht gleich wieder das Template zerstören will. Kann mir vielleicht jmd. weiterhelfen?

@davey: Hast du das Problem inzwischen lösen können und kannst mir weiterhelfen?

Vielen Dank im Voraus
FrediL

davey ·

Hi FrediL,

es ist zwar schon eine Weile her und ich hab' gerade wenig Zeit, aber hier einfach mal mein Template, die TemplateVoila-DatenStruktur und den dazugehörigen TypoScript (SETUP):

TEMPLATE (HTML):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link rel="stylesheet" type="text/css" href="template.css" />
    </head>
    <body id="body" bgcolor="#eeeeff">
        <table width="768" align="center" border="0" cellpadding="0" cellspacing="0" summary="" background="bilder/p.gif">
            <!-- SCHATTEN oben - start -->
            <tr>
                <td id="schatten_o2" height="3">
                    <img src="bilder/schatten/o-2.gif" width="3" height="3" border="0" hspace="0" vspace="0" alt="" /></td>
                <td id="schatten_o3" height="3" background="bilder/schatten/o-3.gif" width="100%">
                    <img src="bilder/p.gif" width="32" height="3" border="0" hspace="0" vspace="0" alt="" /></td>
                <td id="schatten_o4" height="3">
                    <img src="bilder/schatten/o-4.gif" width="5" height="3" border="0" hspace="0" vspace="0" alt="" /></td>
            </tr>
            <!-- SCHATTEN oben - ende -->
            <tr>
                <!-- SCHATTEN links - start -->
                <td id="schatten_l2" background="bilder/schatten/l-2.gif" height="100%">
                    <img src="bilder/p.gif" hspace="0" vspace="0" width="3" height="32" border="0" alt="" /></td>
                <!-- SCHATTEN links - ende -->
                <td id="hauptbereich">
                    <!-- HAUPT-BEREICH - start -->
                    <table id="width" height="100%" border="0" cellpadding="0" cellspacing="0" summary="" background="bilder/p.gif">
                        <tr>
                            <td colspan="2">
                                <a href="../../?id=startseite"> <img src="bilder/titelbild.jpg" width="760" alt="Startseite tinnitus-taube.de" border="0" /></a></td>
                        </tr>
                        <tr>
                            <td width="200" valign="top">
                                <img src="bilder/p.gif" hspace="0" vspace="0" width="32" height="8" border="0" alt="" />
                               <!-- MENÜ-BEREICH - start -->
                               <table width="196" cellspacing="0" cellpadding="0" border="0" align="left" summary="">
                                    <tr>
                                        <td valign="top">
                                            <div id="menu">
                                            <table width="100%" cellspacing="2" border="0" cellpadding="2" align="left" summary="">
                                                <tr>
                                                    <td bgcolor="#e0e0e0" height="14" valign="center">
                                                        <img src="bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><a href="#" class="p" onfocus="this.blur()"> Menu1-2</a></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#e0e0e0" height="14" valign="center">
                                                        <img src="bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><a href="#" class="pp" onfocus="this.blur()"> Menu1-2-aktiv</a></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#ebebeb" height="14" valign="center">
                                                        <img src="bilder/p.gif" width="8" height="14" alt="" />:::<a href="#" class="pp" onfocus="this.blur()"> Menu2-1</a></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#ebebeb" height="14" valign="center">   
                                                        <img src="bilder/p.gif" width="8" height="14" alt="" />:::<a href="#" class="pp" onfocus="this.blur()"> Menu2-1-aktiv</a></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#e0e0e0" height="14" valign="center">
                                                        <img src="bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><a href="#" class="p" onfocus="this.blur()"> Menu1-3</a></td>
                                                </tr>
                                            </table>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="bilder/p.gif" hspace="0" vspace="0" width="32" height="4" border="0" alt="" />
                                            <!-- SUCHE start -->
                                                <table cellspacing="2" cellpadding="2" border="0" width="100%" summary="">
                                                    <tr>
                                                        <td bgcolor="#e0e0e0"><b>Volltextsuche</b></td>
                                                    </tr>
                                                    <tr>
                                                        <td bgcolor="#e0e0e0"><form action="../../?id=suche" name="tx_indexedsearch" method="post" enctype="multipart/form-data"><img src="bilder/p.gif" width="9" height="4" alt="" border="0" hspace="0" vspace="0" /><br /><img src="bilder/p.gif" width="9" height="4" alt="" border="0" hspace="0" vspace="0" /><input type="text" name="tx_indexedsearch[sword]" size="16" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #333333;" value="" /><img src="bilder/p.gif" width="9" height="4" alt="" border="0" hspace="0" vspace="0" /><input type="image" src="bilder/suche.gif" width="16" height="16" alt="suche" border="0" hspace="0" value="0" /></form></td>
                                                    </tr>
                                                </table>
                                            <!-- SUCHE ende -->
                                            <img src="bilder/p.gif" hspace="0" vspace="0" width="32" height="4" border="0" alt="" /></td>
                                    </tr>
                                    <tr>
                                        <td>
                                           <div id="extras">
                                             <table align="left" width="100%" summary="" cellpadding="0" cellspacing="2">
                                                 <tr>
                                                     <td bgcolor="#e0e0e0" height="14">
                                                         <div id="empfehlen"><img src="bilder/icons/empfehlen.gif" width="16" height="16" border="0" alt="" vspace="0" hspace="4" /><a href="../../?id=tipafriend" class="pp" onfocus="this.blur()"><span class="tip">Seite empfehlen</span></a></div></td>
                                                 </tr>
                                                 <tr>
                                                     <td bgcolor="#e0e0e0" height="14">
                                                         <div id="kontakt"><img src="bilder/icons/kontakt.gif" width="16" height="16" border="0" alt="" vspace="0" hspace="4" /><a href="../../?id=kontakt" class="pp" onfocus="this.blur()"><span class="tip">Kontaktformular</span></a></div></td>
                                                 </tr>
                                                 <tr>
                                                     <td bgcolor="#e0e0e0" height="14">
                                                         <div id="druckansicht"><img src="bilder/icons/drucken.gif" width="16" height="16" border="0" alt="" vspace="0" hspace="4" /><a href="../../?id=test" class="pp" onfocus="this.blur()">Druckansicht</a></div></td>
                                                 </tr>
                                                 <tr>
                                                     <td bgcolor="#e0e0e0" height="14">
                                                         <img src="bilder/icons/impressum.gif" width="16" height="16" border="0" alt="" vspace="0" hspace="4" /><a href="../../?id=impressum" class="pp" onfocus="this.blur()">Impressum</a></td>
                                                 </tr>
                                                 <tr>
                                                     <td bgcolor="#e0e0e0" height="14">
                                                         <img src="bilder/icons/sitemap.gif" width="14" height="14" border="0" alt="" vspace="0" hspace="4" /><a href="../../?id=sitemap" class="pp" onfocus="this.blur()">Sitemap</a></td>
                                                 </tr>
                                             </table>
                                           </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <span class="pp"><br /><font size="-2">Powered by</font><br /><a href="http://lunabox.de" target="_blank"><img src="bilder/lunabox-logo.gif" border="0" alt="" vspace="0" hspace="0" /></a><br /><br /><font size="-2">Sie sind Besucher<br /><div id="counter">10243</div><br />seit dem 05.11.2005</font></span></td>
                                    </tr>
                                </table>
                               <!-- MENÜ-BEREICH - ende -->
                            </td>
                            <td width="560" valign="top">
                               <!-- INHALTS-BEREICH - start -->
                                  <table align="left" border="0" cellpadding="10" cellspacing="0" width="100%" height="100%" summary="">
                                      <tr>
                                          <td align="left" valign="top" height="100%">
                                            <div id="inhalt">
                                              <h2>Maecenas faucibus tincidunt pede</h2>
                                                  <div align="justify">
                                                  Lorem ipsum dolor sit amet. Quisque orci sapien, pretium placerat, sagittis ut, eleifend eu, sapien. Quisque vehicula, wisi nec ullamcorper imperdiet, nibh metus ultrices arcu, pharetra varius risus diam sit amet nibh. Sed adipiscing, purus eu vulputate aliquam, sapien ante condimentum turpis, at molestie arcu ante sit amet lectus. Sed ante neque, porta at, congue vel, tristique gravida, dui. Sed elit purus, ullamcorper a, tempor nec, laoreet eu, dolor. <br /> <br /> Nulla urna purus, lobortis sed, adipiscing et, ornare sed, sapien. Nullam accumsan, ligula facilisis consectetuer iaculis, libero eros ultrices sapien, in elementum est sapien id justo. Nullam cursus, erat sed tempus convallis, erat eros iaculis eros, non consequat ante mi in turpis. <br /> <br /> Nullam dictum, velit nec luctus consequat, felis ante egestas lectus, nec viverra wisi arcu vel leo. Nullam eleifend, elit ac faucibus pretium, wisi magna suscipit lorem, ut viverra est dui vitae wisi.
                                                  </div>
                                            </div>
                                          </td>
                                      </tr>
                                      <tr>
                                          <td height="10">
                                              <div id="lastchange">Diese Seite wurde zulezt geändert am: 01.01.2005</div></td>
                                      </tr>
                                  </table>
                               <!-- INHALTS-BEREICH - ende -->
                            </td>
                        </tr>
                    </table>
                    <!-- HAUPT-BEREICH - ende -->
                </td>
                <!-- SCHATTEN rechts - start -->
                <td id="schatten_r2" height="100%" background="bilder/schatten/r-2.gif">
                    <img src="bilder/p.gif" width="5" height="32" border="0" hspace="0" vspace="0" alt="" /></td>
                <!-- SCHATTEN rechts - ende -->
            </tr>
            <!-- SCHATTEN unten - start -->
            <tr>
              <div id="schatten_unten">
                <td><img src="bilder/schatten/u-1.gif" width="3" height="8" border="0" hspace="0" vspace="0" alt="" /></td>
                <td>
                    <table width="100%" height="8" align="center" border="0" cellpadding="0" cellspacing="0" summary="" background="bilder/p.gif">
                        <tr>
                            <td>
                                <img src="bilder/schatten/u-2.gif" width="8" height="8" border="0" hspace="0" vspace="0" alt="" /></td>
                            <td background="bilder/schatten/u-3.gif" width="100%">
                                <img src="bilder/p.gif" hspace="0" vspace="0" width="32" height="8" border="0" alt="" /></td>
                            <td>
                                <img src="bilder/schatten/u-4.gif" hspace="0" vspace="0" width="8" height="8" border="0" alt="" /></td>
                        </tr>
                    </table>
                </td>
                <td>
                    <img src="bilder/schatten/u-5.gif" hspace="0" vspace="0" width="5" height="8" border="0" alt="" /></td>
              </div>
            </tr>
            <!-- SCHATTEN unten - ende -->
        </table>
    </body>
</html>

TypoScript (SETUP):

page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/templates/template.css
page.bodyTag = <body bgcolor="#eeeeff">
page.config.admPanel = 1
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

 
### SPAM-Schutz
config.spamProtectEmailAddresses = 1
config.spamProtectEmailAddresses_atSubst = (at)


### Lastchange:
lib.lastchange = TEXT
lib.lastchange {
 data = page:lastUpdated
 if.isTrue.data = page:lastUpdated 
    date = d.m.Y H:i 
    wrap = <div align="right"><font color="#aaaaaa">Seite zuletzt geändert am  | </font></div>
    wrap2 = | 
    data = register : SYS_LASTCHANGED 
 if > 
}


### Static Docs:
config.simulateStaticDocuments = 0
config.simulateStaticDocuments_addTitle = 100
config.simulateStaticDocuments_pEnc = md5
config.absRefPrefix = http://tinnitus-taube.de/


### Sprache de
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE


### Index-Suche akt.
config.index_enable = 1 
config.index_externals = 1


### Menu-Pfad
lib.Menupfad = COA
lib.Menupfad.10 = TEXT
lib.Menupfad.10.value = Sie befinden sich hier:   
lib.Menupfad.20 = HMENU
lib.Menupfad.20 {
  special = rootline
  special.range = 0|-1
  1 = TMENU
  1.target = _self
  1.wrap =  | 
  1.NO.linkWrap =  > <b>|</b>
 }



### DRUCK-Ansichts-Link
lib.Druckansicht = TEXT
lib.Druckansicht.value = <a href="index.php?id={page:uid}&type=98&no_cache=1" class="pp" target="_blank" onfocus="this.blur()"><img src="fileadmin/templates/bilder/icons/drucken.gif" width="16" height="16" border="0" alt="" vspace="0" hspace="4" />Druckansicht</a>
lib.Druckansicht.insertData = 1


### DRUCK-Ansicht
alt_print >
alt_print = PAGE
alt_print.typeNum=98
alt_print.bodyTag = <body bgcolor="#ffffff" onload="javascript:window.resizeTo(600,700);window.print()">
alt_print.stylesheet = fileadmin/templates/druckansicht.css
alt_print.10 = TEMPLATE
alt_print.10 {
  template = FILE
  template.file = fileadmin/templates/druckansicht.html
  marks {
    PAGE_TITLE = TEXT
    PAGE_TITLE.field = title
    PAGE_SUBTITLE = TEXT
    PAGE_SUBTITLE.field = subtitle
    PAGE_AUTHOR = TEXT
    PAGE_AUTHOR.field = author
    PAGE_AUTHOR.required=1
    PAGE_AUTHOR.typolink.parameter.field = author_email
    PAGE_UID = TEXT
    PAGE_UID.field = uid
    CONTENT < styles.content.get
  }
  workOnSubpart = DOCUMENT_BODY
}


### Counter
lib.Counter = USER
lib.Counter.userFunc = tx_sdglobgraphcounter_pi1->main


### Empfehlen
lib.Empfehlen = COA
lib.Empfehlen {
  wrap = <a href="index.php?id=tipafriend|" class="p"><img src="fileadmin/templates/bilder/icons/empfehlen.gif" width="16" height="16" border="0" alt="" vspace="0" hspace="4" />Seite empfehlen</a>
  1 = TEXT
  1.data = TSFE : id
  1.wrap = &tipUrl=http://tinnitus-taube.de/?id=|
}


## Menu [Begin]
####################################################

lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0

lib.mainMenu.wrap = <table width="100%" cellspacing="2" border="0" cellpadding="2" align="left" summary="">|</table>

#########################
# LEVEL 1
#########################

lib.mainMenu.1 = TMENU
lib.mainMenu.1.NO {
  allWrap = <tr valign="center"><td bgcolor="#e0e0e0" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil1-re-grau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.1.IFSUB = 1
lib.mainMenu.1.IFSUB {
  allWrap = <tr valign="center"><td bgcolor="#e0e0e0" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil2-re-grau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.1.ACT = 1
lib.mainMenu.1.ACT {
  allWrap = <tr valign="center"><td bgcolor="#e0e0f0" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil1-re-blau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.1.ACTIFSUB = 1
lib.mainMenu.1.ACTIFSUB {
  allWrap = <tr valign="center"><td bgcolor="#e0e0f0" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="2" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil2-un-blau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}

#########################
# LEVEL 2
#########################

lib.mainMenu.2 = TMENU
lib.mainMenu.2.NO {
  allWrap = <tr valign="center"><td bgcolor="#e8e8e8" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="18" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil1-re-grau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.2.IFSUB = 1
lib.mainMenu.2.IFSUB {
  allWrap = <tr valign="center"><td bgcolor="#e8e8e8" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="18" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil2-re-grau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.2.ACT = 1
lib.mainMenu.2.ACT {
  allWrap = <tr valign="center"><td bgcolor="#e8f8e8" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="18" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil1-re-gruen.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.2.ACTIFSUB = 1
lib.mainMenu.2.ACTIFSUB {
  allWrap = <tr valign="center"><td bgcolor="#e8f8e8" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="18" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil2-un-gruen.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}

#########################
# LEVEL 3
#########################

lib.mainMenu.3 = TMENU
lib.mainMenu.3.NO {
  allWrap = <tr valign="center"><td bgcolor="#efefef" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="34" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil1-re-grau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.3.IFSUB = 1
lib.mainMenu.3.ACT {
  allWrap = <tr valign="center"><td bgcolor="#efefef" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="34" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil2-re-grau.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.3.ACT = 1
lib.mainMenu.3.ACT {
  allWrap = <tr valign="center"><td bgcolor="#ffefef" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="34" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil1-re-rot.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}
lib.mainMenu.3.ACTIFSUB = 1
lib.mainMenu.3.ACTIFSUB {
  allWrap = <tr valign="center"><td bgcolor="#ffefef" height="14" valign="center"><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="34" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/menupfeile/pfeil2-un-rot.gif" hspace="0" vspace="0" width="14" height="14" border="0" alt="" /><img src="fileadmin/templates/bilder/p.gif" hspace="0" vspace="0" width="4" height="14" border="0" alt="" />|</td></tr>
  ATagParams = class="p"
}

#########################
## Menu [End]

TemplaVoila Data Structure (XML):

<t3datastructure>
    <root type="array">
        <tx_templavoila type="array">
            <title>ROOT</title>
            <description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
            <tags>body</tags>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <field_content type="array">
                <tx_templavoila type="array">
                    <title>Main Content Area</title>
                    <description>Pick the HTML element in the template where you want to place the main content of the site.</description>
                    <sample_data type="array">
                        <numindex index="0">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque porta erat vitae nisl. In hac habitasse platea dictumst. Aliquam ac urna. Morbi magna mauris, semper ut, varius in, convallis vitae, nulla. Proin massa lorem, mollis eget, rutrum vitae, commodo id, risus. Curabitur scelerisque risus eget odio. Proin laoreet blandit elit. Aenean varius, sapien laoreet dapibus volutpat, risus lorem ornare wisi, lobortis venenatis nisl augue sed purus. Nam suscipit viverra justo. Suspendisse tincidunt. Nullam vel quam.</numindex>
                    </sample_data>
                    <etype>ce</etype>
                    <tags>table:outer,td:inner,div:inner,p,h1,h2,h3,h4,h5</tags>
                    <typoscript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
							</typoscript>
                </tx_templavoila>
                <tceforms type="array">
                    <config type="array">
                        <type>group</type>
                        <internal_type>db</internal_type>
                        <allowed>tt_content</allowed>
                        <size>5</size>
                        <maxitems>200</maxitems>
                        <minitems>0</minitems>
                        <multiple>1</multiple>
                        <show_thumbs>1</show_thumbs>
                    </config>
                    <label>Main Content Area</label>
                </tceforms>
            </field_content>
            <field_menu type="array">
                <tx_templavoila type="array">
                    <title>Main menu</title>
                    <description>Pick the HTML container element where you want the automatically made menu items to be placed.</description>
                    <sample_data type="array">
                        <numindex index="0">[Menu goes here]</numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags>table:inner,div,tr,td</tags>
                    <etype_extra type="array">
                        <objpath>lib.mainMenu</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.mainMenu</typoscriptobjpath>
                </tx_templavoila>
            </field_menu>
            <field_drucken type="array">
                <tx_templavoila type="array">
                    <title>Druckansicht</title>
                    <description>Druckansicht</description>
                    <sample_data type="array">
                        <numindex index="0">Druckansicht</numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <typoscript>
	10 = TEXT
	10.typolink.parameter.current = 1
	10.typolink.returnLast = url
							</typoscript>
                    <etype_extra type="array">
                        <objpath>lib.Druckansicht</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.Druckansicht</typoscriptobjpath>
                </tx_templavoila>
                <tceforms type="array">
                    <label>Druckansicht</label>
                </tceforms>
            </field_drucken>
            <field_counter type="array">
                <tx_templavoila type="array">
                    <title>Counter</title>
                    <description>Position des Counters</description>
                    <sample_data type="array">
                        <numindex index="0">1234</numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <typoscriptobjpath>lib.Counter</typoscriptobjpath>
                </tx_templavoila>
            </field_counter>
            <field_empfehlen type="array">
                <tx_templavoila type="array">
                    <title>Seite empfehlen</title>
                    <description>Seite empfehlen</description>
                    <sample_data type="array">
                        <numindex index="0">Seite empfehlen</numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <typoscriptobjpath>lib.Empfehlen</typoscriptobjpath>
                </tx_templavoila>
            </field_empfehlen>
            <field_lastchange type="array">
                <tx_templavoila type="array">
                    <title>Letzte Änderung</title>
                    <sample_data type="array">
                        <numindex index="0">Diese Seite wurde zulezt geändert am: 01.01.2005</numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <etype_extra type="array">
                        <objpath>lib.lastchange</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.lastchange</typoscriptobjpath>
                </tx_templavoila>
            </field_lastchange>
        </el>
    </root>
</t3datastructure>

Soweit ich mich erinnern kann, war damals bei mir der Knackpunkt, dass in der TemplateVoila-DataStructure folgendes eingebaut werden musste: <objpath>lib.lastchange</objpath>

Ich hoffe Dir damit weitergeholfen zu haben - wie gesagt habe ich leider gerade nicht mehr Zeit ...

Das Ergebnis des obigen Codes kannst Du unter http://tinnitus-taube.de betrachten.

FrediL ·

Vielen Dank. Das Problem war wirklich die TemplateVoila-DataStructure(DS). Das habe ich heute Nacht noch rausbekommen. Ich habe einfach ein neues Template erstellt, damit ich nicht in dem bisherigen etwas zerstöre. Dann habe ich die entsprechende Änderung aus der neuen DS in die alte kopiert. Und schon funktionierte es.

Aber trotzdem vielen Dank!

Der Teil, der bei mir fehlte sieht so aus:

            <footer type="array">
                <tx_templavoila type="array">
                    <title>Footer</title>
                    <description>In diesem Bereich wird der Footer angezeigt.</description>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <eType_EXTRA type="array">
                        <objPath>lib.Footer</objPath>
                    </eType_EXTRA>
                    <TypoScriptObjPath>lib.Footer</TypoScriptObjPath>
                </tx_templavoila>
            </footer>

MfG FrediL