/** ------------------------------------------------ * General config */ # Remove 2nd column from defaultGridSeetup, colpos 101, 102 are used lib.gridelements.defaultGridSetup.columns.2 > /** ------------------------------------------------ * Grid definitions */ lib.bootstrap_grids { # Column grids 2cols < lib.gridelements.defaultGridSetup 2cols { wrap =
|
wrap.insertData = 1 columns { 101 < .default 101.dataWrap =
|
# override if none set (supporting drag&drop) 101.dataWrap.override =
|
101.dataWrap.override.if.isNull.field = flexform_xsCol1 101.wrap > 102 < .101 102.dataWrap =
|
102.dataWrap.override.if.isNull.field = flexform_xsCol2 } } 3cols < .2cols 3cols { columns { 101.dataWrap =
|
102.dataWrap =
|
103 < .101 103.dataWrap =
|
102.dataWrap.override.if.isNull.field = flexform_xsCol3 } } 4cols < .3cols 4cols { columns { 101.dataWrap =
|
102.dataWrap =
|
103.dataWrap =
|
104 < .101 104.dataWrap =
|
104.dataWrap.override.if.isNull.field = flexform_xsCol4 } } # Tabs simpleTabs < lib.gridelements.defaultGridSetup simpleTabs { outerWrap =
|
outerWrap.insertData = 1 prepend = CONTENT prepend { table = tt_content select { selectFields = header, uid, tx_gridelements_container, sorting where = tx_gridelements_container={field:uid} where.insertData = 1 orderBy = sorting } wrap = renderObj = COA renderObj { 5 = LOAD_REGISTER 5 { TabCount.cObject = TEXT TabCount.cObject.data = register:TabCount TabCount.cObject.wrap = |+1 TabCount.prioriCalc = intval } 10 = TEXT 10 { field = header insertData = 1 wrap = | outerWrap.cObject = CASE outerWrap.cObject { key.data = register:TabCount default = TEXT default.value = | 1 = TEXT 1.value = | } } } } columns { 101 < .default 101 { wrap =
|
renderObj { 5 = LOAD_REGISTER 5 { TabCount2.cObject = TEXT TabCount2.cObject.data = register:TabCount2 TabCount2.cObject.wrap = |+1 TabCount2.prioriCalc = intval } stdWrap.insertData = 1 stdWrap.outerWrap.cObject = CASE stdWrap.outerWrap.cObject { key.data = register:TabCount2 default = TEXT default.value = 1 = TEXT 1.value = } # don't show headers in tabs #20 =< tt_content 20 < tt_content 20 { text.10 > image.10 > textpic.10 > uploads.10 > table.10 > multimedia.10 > media.10 > mailform.10 > menu.10 > videoce_videocontent.10 > } } } } # Reset tab counts append = COA append { 5 = LOAD_REGISTER 5 { TabCount.cObject = TEXT TabCount.cObject.data = register:TabCount TabCount.cObject.wrap = |*0 TabCount.prioriCalc = intval } 10 = LOAD_REGISTER 10 { TabCount2.cObject = TEXT TabCount2.cObject.data = register:TabCount2 TabCount2.cObject.wrap = |*0 TabCount2.prioriCalc = intval } } } 4tabs < lib.gridelements.defaultGridSetup 4tabs { # style wrap outerWrap =
|
outerWrap.insertData = 1 prepend = COA prepend.wrap = prepend { 10 = TEXT 10.value = 10.insertData = 1 20 < .10 20.value = 20.if.isTrue.field = flexform_tabTitle2 30 < .10 30.value = 30.if.isTrue.field = flexform_tabTitle3 40 < .10 40.value = 40.if.isTrue.field = flexform_tabTitle4 } wrap =
|
columns { 101 < .default 101.wrap = 101.wrap.insertData = 1 102 < .101 102.wrap = 102.if.isTrue.field = flexform_tabTitle2 103 < .101 103.wrap = 103.if.isTrue.field = flexform_tabTitle3 104 < .101 104.wrap = 104.if.isTrue.field = flexform_tabTitle4 } } 6tabs < .4tabs 6tabs { prepend { 50 < .10 50.value = 50.if.isTrue.field = flexform_tabTitle5 60 < .10 60.value = 60.if.isTrue.field = flexform_tabTitle6 } columns { 105 < .101 105.wrap = 105.if.isTrue.field = flexform_tabTitle5 106 < .101 106.wrap = 106.if.isTrue.field = flexform_tabTitle6 } } # Accordion accordion < lib.gridelements.defaultGridSetup accordion { # wrap around all outerWrap.stdWrap.cObject = CASE outerWrap.stdWrap.cObject { key.field = flexform_rowclass default = TEXT default.value =
|
} outerWrap.insertData = 1 columns { 101 < .default 101 { renderObj { #stdWrap.outerWrap =
|
5 = LOAD_REGISTER 5 { AccordionCount.cObject = TEXT AccordionCount.cObject.data = register:AccordionCount AccordionCount.cObject.wrap = |+1 AccordionCount.prioriCalc = intval } 10 = TEXT 10 { field = header insertData = 1 wrap =
wrap.override =
wrap.override.if.value = 1 wrap.override.if.equals.data = register:AccordionCount } # don't show headers in accordion #20 =< tt_content 20 < tt_content 20 { text.10 > image.10 > textpic.10 > uploads.10 > table.10 > multimedia.10 > media.10 > mailform.10 > menu.10 > videoce_videocontent.10 > } 30 = TEXT 30.wrap = |
} } } # Reset accordion count append = COA append { 5 = LOAD_REGISTER 5 { AccordionCount.cObject = TEXT AccordionCount.cObject.data = register:AccordionCount AccordionCount.cObject.wrap = |*0 AccordionCount.prioriCalc = intval } } } # Slider slider < lib.gridelements.defaultGridSetup slider { columns { 101 < .default 101.renderObj.wrap =
  • |
  • 101.wrap (
      |
    ) 101.insertData = 1 } append = COA append.wrap ( ) append { 10 = TEXT 10.dataWrap = $('#flexslider{field:uid}').flexslider( | 20 = TEXT 20.value = { 30 = TEXT 30.insertData = 1 30.value ( direction: "{field:flexform_direction}", slideshowSpeed: {field:flexform_slidespeed}, animation: "{field:flexform_animation}", animationSpeed: {field:flexform_animationspeed}, animationLoop: {field:flexform_animationloop}, useCSS: false, controlNav: {field:flexform_showcontrolnav}, directionNav: {field:flexform_showdirnav}, pausePlay: {field:flexform_showpause}, pauseOnHover: {field:flexform_pauseonhover}, initDelay: {field:flexform_initdelay}, randomize: {field:flexform_randomize}, reverse: {field:flexform_reverse} ) 40 = TEXT 40.value = }); } } # simple row for content elements and usage with ext:bscolwrap simpleRow < lib.gridelements.defaultGridSetup simpleRow { # row wrap wrap =
    |
    columns { # special 111, used as check for conditional fields 111 < .default 111.wrap = | } } } /** ------------------------------------------------ * Assign grid rendering to layout ids (names) */ tt_content.gridelements_pi1.20.10.setup { 2cols < lib.bootstrap_grids.2cols 3cols < lib.bootstrap_grids.3cols 4cols < lib.bootstrap_grids.4cols accordion < lib.bootstrap_grids.accordion slider < lib.bootstrap_grids.slider tabsSimple < lib.bootstrap_grids.simpleTabs tabs4 < lib.bootstrap_grids.4tabs tabs6 < lib.bootstrap_grids.6tabs xSimpleRow < lib.bootstrap_grids.simpleRow } /** ------------------------------------------------ * CSS and JS for flexslider (content slider grid) */ page { includeCSS.flexslider2 = EXT:bootstrap_grids/Resources/Public/Flexslider2/flexslider.css includeJSFooterlibs.flexslider2 = EXT:bootstrap_grids/Resources/Public/Flexslider2/jquery.flexslider-min.js }