Zum Inhalt springen

Seiteninhalt wird nicht angezeigt

Erstellt am 11. Mai 2006 · 6 Antworten · letzte Antwort am 26. Mai 2006

Tags: Frage

toph ·

Hallo,

Ich habe gerade ein Template mit einer ganzen Reihe von Mappings erstellt. Die meisten davon beziehen sich auf TypoScript-Objekte (Menü, etc.), außerdem gibt es zwei Content-Bereiche. Im TemplaVoila-Modul werden alle Beispieldaten auch korrekt gemappt. Wenn ich allerdings auf eine Seite gehe, dann stimmen alle Mappings mit Ausnahme der Content-Bereiche, die gar nicht angezeigt werden. Im HTML steht das Wrapping dieser Bereiche (TYPO_SEARCH begin/end), aber nichts dazwischen.

Woran könnte das liegen?

Hier meine DS (komplett mit dem TemplaVoila-Mapping erstellt):

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<t3datastructure>
    <meta type="array" />
        <langchildren type="integer">1</langchildren>
        <langdisable type="integer">0</langdisable>
    </meta>
    <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>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <field_menu_top type="array">
                <tx_templavoila type="array">
                    <title>Obere Menüleiste</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags>*:inner</tags>
                    <etype_extra type="array">
                        <objpath>lib.menuTop</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.menuTop</typoscriptobjpath>
                </tx_templavoila>
            </field_menu_top>
            <field_menu_left type="array">
                <tx_templavoila type="array">
                    <title>Menü links</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags>*:inner</tags>
                    <etype_extra type="array">
                        <objpath>lib.menuLeft</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.menuLeft</typoscriptobjpath>
                </tx_templavoila>
            </field_menu_left>
            <field_menu_bottom type="array">
                <tx_templavoila type="array">
                    <title>Untere Menüleiste</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags>*:inner</tags>
                    <etype_extra type="array">
                        <objpath>lib.menuBottom</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.menuBottom</typoscriptobjpath>
                </tx_templavoila>
            </field_menu_bottom>
            <field_current_date type="array">
                <tx_templavoila type="array">
                    <title>Aktuelles Datum</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags>*:inner</tags>
                    <etype_extra type="array">
                        <objpath>lib.currentDate</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.currentDate</typoscriptobjpath>
                </tx_templavoila>
            </field_current_date>
            <field_breadcrumb type="array">
                <tx_templavoila type="array">
                    <title>Breadcrumb-Navigation</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags>*:inner</tags>
                    <etype_extra type="array">
                        <objpath>lib.breadcrumb</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.breadcrumb</typoscriptobjpath>
                </tx_templavoila>
            </field_breadcrumb>
            <field_content type="array">
                <tx_templavoila type="array">
                    <title>Seiteninhalt</title>
                    <sample_data type="array">
                        <numindex index="0">Seiteninhalt</numindex>
                    </sample_data>
                    <etype>ce</etype>
                    <tags>*:inner</tags>
                    <typoscript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
                    </typoscript>
                    <oldstylecolumnnumber type="integer">0</oldstylecolumnnumber>
                </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>Seiteninhalt</label>
                </tceforms>
            </field_content>
            <field_sidebar type="array">
                <tx_templavoila type="array">
                    <title>Rechte Spalte</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>ce</etype>
                    <tags>*:inner</tags>
                    <typoscript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
                    </typoscript>
                    <oldstylecolumnnumber type="integer">1</oldstylecolumnnumber>
                </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>Rechte Spalte</label>
                </tceforms>
            </field_sidebar>
            <field_graphic_title type="array">
                <tx_templavoila type="array">
                    <title>Grafischer Titel</title>
                    <sample_data type="array">
                        <numindex index="0"></numindex>
                    </sample_data>
                    <etype>TypoScriptObject</etype>
                    <tags></tags>
                    <etype_extra type="array">
                        <objpath>lib.graphicTitle</objpath>
                    </etype_extra>
                    <typoscriptobjpath>lib.graphicTitle</typoscriptobjpath>
                </tx_templavoila>
            </field_graphic_title>
        </el>
    </root>
</t3datastructure>
###########################################################################
# main site config

config {
    removeDefaultJS = external
    inlineStyle2TempFile = 1
    spamProtectEmailAddresses = 7
    spamProtectEmailAddresses_atSubst = (at)
    cache_clearAtMidnight = 1
    stat = 1
    stat_excludeBEuserHits = 1
    stat_mysql = 1
    headerComment = Copyright (c) 2005 Christoph Fischer
    typolinkCheckRootline = 1
    index_enable = 1
    index_externals = 1

   simulateStaticDocuments = 0
   baseURL = http://cms.vm-freudenstadt.de/
   tx_realurl_enable = 1 
}

###########################################################################
# preferences for blog feed import

plugin.tx_nrdfimport_pi1.singleView.results_at_a_time = 20

###########################################################################
# top menu (tabs at the top of the page)

lib.menuTop = HMENU
lib.menuTop {
    entryLevel = 0
}
  # First level menu-object, textual
lib.menuTop.1 = TMENU
lib.menuTop.1 {
    # Normal state properties
  NO.stdWrap.htmlSpecialChars = 1
  NO.allWrap = <td class="topnav"> |      </td>

    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <td class="topnav_act"> |      </td>
}

###########################################################################
# main menu 

lib.menuLeft = HMENU
lib.menuLeft {
    entryLevel = 1
}
  # First level menu-object, textual
lib.menuLeft.1 = TMENU
lib.menuLeft.1 {
    # Normal state properties
  NO.stdWrap.htmlSpecialChars = 1
  NO.allWrap = <tr><td class="leftnav1"> <img src="dateien/vorlagen/gemeinde/res/arrow.gif" alt="" border="0" height="9" hspace="2" width="9" /> | </td></tr>

    # Spacers
  SPC = 1
  SPC.stdWrap.htmlSpecialChars = 1
  SPC.allWrap = <tr><td class="leftnav" bgcolor="#737272">   | </td></tr>
}




###########################################################################
# bottom menu 

lib.menuBottom = HMENU
lib.menuBottom {
    entryLevel = 0
}
  # First level menu-object, textual
lib.menuBottom.1 = TMENU
lib.menuBottom.1 {
    # Normal state properties
  NO.stdWrap.htmlSpecialChars = 1
  NO.allWrap = <td class="bottomnav"> |      </td>

    # Enable active state and set properties:
  ACT = 1
  ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <td class="bottomnav_act"> |      </td>
}


###########################################################################
# breadcrumb navigation

lib.breadcrumb = HMENU
lib.breadcrumb {
    special = rootline
    special.range = 1 | -1
    1 = TMENU
    1 {
       # Normal state properties
       NO.stdWrap.htmlSpecialChars = 1
       NO.allWrap = <font class="bottomnav">|   <img src="dateien/vorlagen/gemeinde/res/arrow_003.gif" alt="" /> </font>
       
       # Enable active state and set properties:
       ACT = 1
       ACT.stdWrap.htmlSpecialChars = 1
       ACT.allWrap = <font class="bottomnav_act">|   <img src="dateien/vorlagen/gemeinde/res/arrow_003.gif" alt="" /> </font>
    }
}


###########################################################################
# graphic title

lib.graphicTitle = HMENU
lib.graphicTitle {
    special = rootline
    special.range = 1 | 1
    maxItems = 1
    1 = GMENU
    1 {
        NO {
            XY = 175,40
            backColor = #5155b1
            10 = TEXT 
            10 {
                text.field = title
                fontFile = t3lib/fonts/MyriadVM.ttf
                fontSize = 17
                fontColor = white
                offset = 8, 30
            }
        }
    }
}


###########################################################################
# current date

lib.currentDate = TEXT
lib.currentDate {
    data = date:U
    strftime = %A, %e. %B %Y
}



###########################################################################
# info for "page last updated:" field

lib.update = TEXT
lib.update {
   data = page:lastUpdated
   if.isTrue.data = page:lastUpdated
       date = d.m.Y H:i
       wrap = |  <abbr title="Central European Time">CET</abbr>
       data = register : SYS_LASTCHANGED
   if >
}


###########################################################################
# Default PAGE object:

page = PAGE
page.typeNum = 0
page.config.doctype = xhtml_trans

page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
anderlk ·

Hallo,

ich habe das gleiche Problem: Die Mappings wurden korrekt erstellt, aber meine Content Inhalte werden nicht angezeigt!!

Wie kann man ein Template zum rendern des Contents einbinden??

Ich arbeite mit der Version 4.0, und ich glaub, ich hab das irgendwie auch nicht richtig eingebunden.

Die extension CSS styled content ist installiert.

Boerni ·

Hallo ihr,
ich hab exakt das selbe Problem.
Habt ihr schon eine Lösung gefunden?
Gruß Börni

toph ·

Hallo,

Die Lösung war tatsächlich ein nicht eingebundenes Template für CSS Styled Content. So einfach! Und ich hab stundenlang gesucht :-(.

Da ich den Text meines Templates von einer bestehenden Installation kopiert hatte, ist mir dieses Detail leider entgangen.

Zur Vorgehensweise: Gesamtes Template bearbeiten (nicht nur den "Setup"-Teil) und unten unter "Static content" das Template für "CSS Styled Content" aktivieren. Funktioniert nur, wenn die Extension "CSS Styled Content" installiert ist.

_o3_ ·

leider nicht bei mir.
hatte das problem auch noch nie?
selbst css_sytled_content ist eingebunden...aber trotzdem weigert er sich meinen inhalt auszuwerfen?

alle mappings etc. sind ok...

NetPartyzan ·

Hallo erst einmal, bin ja schon ne weile am lesen im Forum, nu hab ich mich auch endlich ma registriert. 8-)

Habe auch das Problem gehabt und konnte es mir nicht erklären, da alles soweit stimmte. Jedoch hatte ich meine Content Elemente erst als Objektpfade angelegt und nachträglich geändert. Habe sie nochmal gelöscht und neu angelegt danach funzte es.

Bei anderen Installationen nie derartige Probleme gehabt.