[TYPO3-german] gridelements wrapping problem

Karl sixx24 at gmx.net
Wed Feb 12 23:50:12 CET 2014


Hallo zusammen,

ich habe das Problem das meine in einen Gridcontainer gepackten Elemente nicht wie gewünscht gewrappt werden sondern immer die Standard Wrappings haben.

Folgender Aufbau: Typo3 6.1.7 - Gridelements 2.0.2

Ich habe ein Backend Layout 1spaltig wo ich ein fluid Template reinlade:
################################
# Default PAGE object:
page = PAGE
page.10 = FLUIDTEMPLATE
page.10 {
    file = fileadmin/templates/fluid/standard.html
    layoutRootPath = fileadmin/templates/fluid/layouts/
    partialRootPath = fileadmin/templates/fluid/partials/    
    file.stdWrap.cObject = CASE
    file.stdWrap.cObject {
        key.data = levelfield:-1, backend_layout_next_level, slide
        key.override.field = backend_layout 
        # Default Template
        default = TEXT
        default.value = fileadmin/templates/fluid/standard.html 
        # The number equals the UID of the backend Layout:
        1 = TEXT
        1.value = fileadmin/templates/fluid/standard.html 
    }
    
    ## Fluid Variablen zuweisen
    variables {
        content < styles.content.get
        content.select.where = colPos = 0
    }    
}
###########################################

Dann habe ich ein 2 Spaltiges CE Backend Layout mit der ID = 1 und colPos = 10 und colPos20.
So weit so gut. Ich kann das 2 spaltige CE auf eine Seite in den Content einfügen und dort auch Inhaltselemente reinpacken. Diese werden mir im Standard Typo Rendering im Frontend angezeigt.

Nun möchte ich das 2 spaltige CE aber natürlich anders wrappen. Habe dafür eine .ts die ich im Root Template include mit folgendem Code:
#########################################
tt_content.gridelements_view.20.10.setup {
    # ID of gridelement
    1 < lib.gridelements.defaultGridSetup 
    1 {
        columns {
            # colPos ID
            10 < .default
            10.wrap = <div class="col-1-2">|</div>
            # colPos ID
            20 < .default
            20.wrap = <div class="col-1-2">|</div>
        }
        wrap = <div class="grid grid-pad">|</div>
    }
}
#############################################

Leider interessiert Typo das nicht und er rendert weiter munter im Standard.

WAS mache ich falsch? :(

DANKE


More information about the TYPO3-german mailing list