Zum Inhalt springen

Seitentitel ausgeben funktioniert nicht

Erstellt am 12. November 2009 · 1 Antwort · letzte Antwort am 13. November 2009

Tags: Bilder, Frage

ed_von_schleck ·

Hallo zusammen!

Ich weiß, das Thema wurde schon etliche Male durchgekaut. Ich habe mich mittlerweile echt durch viele Forenbeiträge gekämpft und immer wieder einige Sachen versucht, aber ich finde den Fehler einfach nicht.

Ich will eigentlich ganz billig den Seitentitel als gerendertes Bild ausgeben. Aber es will einfach nicht klappen, er zeigt den Titel einfach nicht an.

Bestenfalls will ich einen beliebigen Titel ausgeben, den man in den Seiteneigenschaften angeben kann. Ich könnte natürlich auch beim Mappen mit TV den Editing Type auf PlainInputField stellen. Dann könnte ich bei den Seiteneigenschaften einen Titel eingeben, der mir dann auch ausgegeben wird. Problem hierbei ist nur die Mehrsprachigkeit. Diesen Titel definiert man ja quasi für alle Sprachen. Wenn ich eine Übersetzung einer Seite anlege, kann ich diesen Titel nicht undividuell ändern.

Daher hatte ich dann die Idee mir einfach den Titel der Seite ausgeben zu lassen, da ich diesen für die Übersetzungen ändern kann. Aber das klappt wie gesagt auch nicht. Aber falls jemand andere Vorschläge hat, immer her damit. Ansonsten versuche ich es weiterhin mit dem pagetitle.

Hier mein TS-Code:

lib.maintitel = COA
lib.maintitel {

    10 = IMG_RESOURCE
    10.stdWrap.wrap = <h2 class="imageheader" style="background-image: url('|'); background-repeat:no-repeat;">
    10.file = GIFBUILDER
    10.file {
          10 = TEXT
          10 {
               fontSize = 18px
               fontFile = fileadmin/templates/fonts/STONESSM.TTF
               offset = 15,25
               fontColor = #538fb4
               niceText = 1
               antiAlias = 1
               text.case = upper
               text.field = title
               splitRendering.10 = charRange
               splitRendering.10 {
                         value = 20000-50000
                         fontSize = 18px
                         fontFile = fileadmin/templates/fonts/ARIALUNI.TTF
                     }
          }
          
          
          XY = 410,40
          backColor = #ffffff
          transparentBackground = 0
    }
    
    20 = TEXT
    20.current = 1
    20.text.field = title
    20.wrap = <span class="hidden">|</span></h2>
}

Hier noch meine TV-Datenstruktur:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
    <meta type="array">
        <langDisable>1</langDisable>
    </meta>
    <ROOT type="array">
        <tx_templavoila type="array">
            <title>ROOT</title>
            <description>Wählen Sie das HTML-Element der Seite, das Sie als übergeordnetes Container-Element der Vorlage möchten.</description>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <field_language type="array">
                <tx_templavoila type="array">
                    <title>Sprache</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.language</TypoScriptObjPath>
                </tx_templavoila>
            </field_language>
            <field_logo type="array">
                <tx_templavoila type="array">
                    <title>Logo</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.logo</TypoScriptObjPath>
                </tx_templavoila>
            </field_logo>
            <field_headerimage type="array">
                <type>array</type>
                <tx_templavoila type="array">
                    <title>Header-Bild</title>
                    <eType>image</eType>
                </tx_templavoila>
                <el type="array">
                    <field_imagesrc type="array">
                        <type>attr</type>
                        <tx_templavoila type="array">
                            <title>Bild auswählen!</title>
                            <sample_data type="array">
                                <numIndex index="0"></numIndex>
                            </sample_data>
                            <eType>image</eType>
                            <TypoScript>
    10 = IMG_RESOURCE
    10.file.import = uploads/tx_templavoila/
    10.file.import.current = 1
    10.file.import.listNum = 0
    10.file.maxW = 790
                            </TypoScript>
                        </tx_templavoila>
                        <TCEforms type="array">
                            <config type="array">
                                <type>group</type>
                                <internal_type>file</internal_type>
                                <allowed>gif,png,jpg,jpeg</allowed>
                                <max_size>1000</max_size>
                                <uploadfolder>uploads/tx_templavoila</uploadfolder>
                                <show_thumbs>1</show_thumbs>
                                <size>1</size>
                                <maxitems>1</maxitems>
                                <minitems>0</minitems>
                            </config>
                            <label>Bild auswählen!</label>
                        </TCEforms>
                    </field_imagesrc>
                    <field_imagealt type="array">
                        <type>attr</type>
                        <tx_templavoila type="array">
                            <title>ALT-Tag eintragen!</title>
                            <sample_data type="array">
                                <numIndex index="0"></numIndex>
                            </sample_data>
                            <eType>input</eType>
                            <proc type="array">
                                <HSC type="integer">1</HSC>
                            </proc>
                        </tx_templavoila>
                        <TCEforms type="array">
                            <config type="array">
                                <type>input</type>
                                <size>48</size>
                                <eval>trim</eval>
                            </config>
                            <label>ALT-Tag eintragen!</label>
                        </TCEforms>
                    </field_imagealt>
                    <field_imagetitle type="array">
                        <type>attr</type>
                        <tx_templavoila type="array">
                            <title>TITLE-Tag eintragen!</title>
                            <sample_data type="array">
                                <numIndex index="0"></numIndex>
                            </sample_data>
                            <eType>input</eType>
                            <proc type="array">
                                <HSC type="integer">1</HSC>
                            </proc>
                        </tx_templavoila>
                        <TCEforms type="array">
                            <config type="array">
                                <type>input</type>
                                <size>48</size>
                                <eval>trim</eval>
                            </config>
                            <label>TITLE-Tag eintragen!</label>
                        </TCEforms>
                    </field_imagetitle>
                </el>
            </field_headerimage>
            <field_title type="array">
                <tx_templavoila type="array">
                    <title>Seitentitel</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.maintitel</TypoScriptObjPath>
                </tx_templavoila>
                <TCEforms type="array">
                    <label>Seitentitel</label>
                </TCEforms>
            </field_title>
            <field_navigation type="array">
                <tx_templavoila type="array">
                    <title>Menü</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.navigation</TypoScriptObjPath>
                </tx_templavoila>
            </field_navigation>
            <field_content_left type="array">
                <tx_templavoila type="array">
                    <title>linker Inhalt</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>ce</eType>
                    <TypoScript><![CDATA[
    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>linker Inhalt</label>
                </TCEforms>
            </field_content_left>
            <field_content_right type="array">
                <tx_templavoila type="array">
                    <title>rechter Inhalt</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>ce</eType>
                    <TypoScript><![CDATA[
    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>rechter Inhalt</label>
                </TCEforms>
            </field_content_right>
            <field_globalnavi type="array">
                <tx_templavoila type="array">
                    <title>Globale Links</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.globale_navi</TypoScriptObjPath>
                </tx_templavoila>
            </field_globalnavi>
            <field_copyright type="array">
                <tx_templavoila type="array">
                    <title>Copyright</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.copyright</TypoScriptObjPath>
                </tx_templavoila>
            </field_copyright>
            <field_analytics type="array">
                <tx_templavoila type="array">
                    <title>Google Analytics</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <TypoScriptObjPath>lib.analytics</TypoScriptObjPath>
                </tx_templavoila>
            </field_analytics>
        </el>
    </ROOT>
</T3DataStructure>

Vielen Dank schonmal und beste Grüße,

Sebastian

ed_von_schleck ·

Vielen Dank zunächst für die zahlreichen Antworten!!! :-)

Ich habe es jetzt allein hinbekommen...

Damit hat es geklappt:

text.data = levelfield: -1, subtitle, slide
text.listNum = 0

Außerdem musste ich im Installtool das rootline_field "subtitle" hinzufügen.