Skip to main content

Innerhalb einer CONTENTAREALIST auf diese zugreifen

Comments

1 comment

  • Zendesk API User
    Author: feddersen - 10/20/2010 12:31

    Ich habe mal sowas umgesetzt, mit folgender Logik. Es handelt sich auch um eine  ContentAreaList, die ineinander verschachtelt werden kann.

    $--
    The first nested grid (grid inside a grid) needs to have the "first" class applied
    Context for a nested grid looks like this: page -> section -> for -> section
    So we check if the parent.parent is a section and if that section is the first section-list in the widgetcontainer
    --$
    $CMS_IF(#global.context.parentContext.parentContext != null && #global.context.parentContext.parentContext.name == "section" && #global.context.parentContext.parentContext.definedVariableValue("set_st_isFirstColumn"))$
        $CMS_SET(set_st_isFirstNestedContainer," first")$
    $CMS_ELSE$
        $CMS_SET(set_st_isFirstNestedContainer,"")$
    $CMS_END_IF$

    0

Please sign in to leave a comment.