Fluid + Gridelements + Textmedia

// Templates für Gridelements definieren
tt_content.gridelements_pi1.20.10.setup {
    # ID des Gridelements
    1cols < lib.gridelements.defaultGridSetup
    1cols {

        // Zusätzliche Pfade für optionale Textmedia Layouts
        columns.default.renderObj.20.textmedia.layoutRootPaths.10 = EXT:template_extension/Resources/Private/gridelements/Layouts
        columns.default.renderObj.20.textmedia.templateRootPaths.10 = EXT:template_extension/Resources/Private/gridelements/Templates
        columns.default.renderObj.20.textmedia.partialRootPaths.10 = EXT:template_extension/Resources/Private/gridelements/Partials

        # FLUIDTEMPLATE konfigurieren
        cObject = FLUIDTEMPLATE
        cObject {

            format = html

            partialRootPaths {
                10 = EXT:template_extension/Resources/Private/gridelements/Partials
            }
            layoutRootPaths {
                10 = EXT:template_extension/Resources/Private/gridelements/Layouts
            }
            templateRootPaths {
                10 = EXT:template_extension/Resources/Private/gridelements/Templates
            }

            templateName = 1Cols

            variables {
                header < lib.stdheader
            }
        }
    }

    2cols < .1cols
    2cols.cObject.templateName = 2Cols

    3cols < .1cols
    3cols.cObject.templateName = 3Cols
    3cols.columns.default.renderObj.20.textmedia.templateName = 3Cols-textmedia

    box1 < .1cols
    box1.cObject.templateName = box1

    box2 < .1cols
    box2.cObject.templateName = box2
}

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.