Page Bodytag

page.bodyTag = <body bgcolor="{$bgCol}">

Links:
tsref page

Comments Off

Adding own Content Elements based on TYPO3 Content Elements

tt_content.textpicbox = COA
tt_content.textpicbox {
  wrap = <div class="textpicbox">|</div>
  10 = TEXT
  10.field = header
  10.wrap = <div class="csc-header"><h1>|</h1></div>
  20 = COA
  20.wrap = <div class="content-container">|</div>
  20 {
    10 = IMAGE
    10 {
      wrap = <div class="image">|</div>
      file.import = uploads/pics/
      file.import.field = image
      file.import.listNum = 0
      file.width = 310
    }
    20 = TEXT
    20.field = bodytext
    20.wrap = <div class="content">|</div>
  }
}

Add in extTables.php

t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['columns']['CType']['config']['items'][] = array('Text with left image', 'textpicbox');
$TCA['tt_content']['types']['textbox'] = array(
    'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general,header,
    bodytext;Text;;richtext:rte_transform[flag=rte_enabled|mode=ts_css],
    					rte_enabled,image,caption'
);

Links:
custom content elements
alternative extension

Comments Off

Fluid Template Integration

page = PAGE
page.10 = FLUIDTEMPLATE
page.10 {
  file = fileadmin/default/template/index.html
  variables {
    content < lib.content-left
  }
}

Links:
documentation – fluidtemplate
fluidtemplate selector and backend layout

Comments Off

Text Menu

lib.main-menu = HMENU
lib.main-menu {
  1 = TMENU
  1 {
    wrap = <ul class="mainNavi">|</ul>
    NO {
      allWrap = |*| <li class="odd">|</li> || <li class="even">|</li> |*|
    }
    ACT = 1
    ACT {
      wrapItemAndSub = <li class="active">|</li>
    }
    CUR = 1
    CUR {
      wrapItemAndSub = <li class="active">|</li>
    }
  }
}

To start from another entry level add:

lib.main-menu.entryLevel = 1

Links:
wiki – HMENU
tsref – TMENU

Comments Off

Breadcrumb Menu

lib.breadcrumb-menu = COA
lib.breadcrumb-menu {
  wrap = <div class="breadcrumb">|</div>
  5 = TEXT
  5 {
    value = liebersicher.de
    wrap = |&nbsp;  / &nbsp;
  }
  10  = HMENU
  10 {
    includeNotInMenu = 1
    special = rootline
    special.range = 1 | -1
    1 = TMENU
    1.NO.allWrap = | &nbsp;  / &nbsp;  |*| |  &nbsp; / &nbsp;  |*| |
  }
}

Links:
wiki – HMENU
tsref – HMENU

Comments Off