/* home.ts Home typoscript setup code rev 0.1.0 revised 1.14.08 racbny */ #Include external typoscript #// TEMPLATE AUTO PARSER ### #// Configuring the Auto-Parser for homepage template: plugin.tx_automaketemplate_pi1 { # Read the template file: content = FILE content.file = fileadmin/template/home.html # Here we define which elements in the HTML that # should be wrapped in subpart-comments: elements { BODY.all = 1 BODY.all.subpartMarker = DOCUMENT_BODY HEAD.all = 1 HEAD.all.subpartMarker = DOCUMENT_HEADER HEAD.rmTagSections = title #// DIV.all will make all DIV's with ID as replacable. #DIV.all = 1 SPAN.id.menu_1_t3 = 1 SPAN.id.menu_2_t3 = 1 SPAN.id.menu_3_t3 = 1 SPAN.id.searchbox_t3 = 1 SPAN.id.content_normal_t3 = 1 SPAN.id.content_left_t3 = 1 SPAN.id.content_right_t3 = 1 SPAN.id.content_border_t3 = 1 SPAN.id.footer_t3 = 1 } #// Prefix all relative paths with this value: #// Our convention is fileadmin/template/ relPathPrefix = fileadmin/template/ } #// Need to include this for DHTML Graphical Menu page.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php page.includeLibs.tmenu_layers = media/scripts/tmenu_layers.php #// Hierarchical menu. All menus start here temp.menu_1_t3 = HMENU #// Menu: GMENU_LAYERS is the DHTML menu in typo3 temp.menu_1_t3.1 = GMENU_LAYERS temp.menu_1_t3.1 { layerStyle = position:absolute;left:0px;top:30px;width:10px;VISIBILITY:hidden; #yPosOffset = 150 lockPosition = y topOffset = 27 leftOffset = 0 hideMenuWhenNotOver = 100 hideMenuTimer = 1000 expAll=1 displayActiveOnLoad = 0 relativeToTriggerItem = 1 #// Normal state properties NO { # offset 30,0 XY = [10.w]+15,27 #XY = 178, 34 backColor = white transparentBackground = 0 5 = IMAGE 5.file = fileadmin/template/images/nav_bg.gif 7 = BOX 7.offset = || 19,9 7.dimensions = || 0,13,1,14 7.color = || #FFFFFF 10 = TEXT 10.text.field = title #10.fontFile = fileadmin/template/fonts/GILLSANS.TTF 10.fontSize = 10.5 10.fontColor = #FFFFFF 10.offset = 0,17 10.align = center 10.text.case=upper } NO = 1 RO < .NO #// Rollover state properties RO { 10.fontColor = #DEEAE0 } #// Enable RO state; this must go AFTER the states config RO = 1 ACT < .NO #// Active state properties ACT { 10.fontColor = #7C1217 #10.fontFile = fileadmin/template/fonts/GILLSBOLD.TTF } #// Enable active state; this must go AFTER the states config ACT = 0 } // Dropdown menu, level 1, ADDED 12/20/2010 - Mike Schroeder temp.menu_1_t3.2 = TMENU_LAYERS temp.menu_1_t3.2 { expAll = 1 leftOffset = 140 topOffset = 0 relativeToTriggerItem = 1 relativeToParentLayer = 1 wrap = #// Normal state properties NO { allWrap =
  • |
  • } } #// HEADER TEMPLATE OBJECT - Main TEMPLATE cObject for the HEADER: temp.headerTemplate = TEMPLATE temp.headerTemplate { #// Feeding the content from the Auto-parser to the TEMPLATE cObject: template =< plugin.tx_automaketemplate_pi1 #// What part of output from automaketemplate extension to feed into this TEPLATE object workOnSubpart = DOCUMENT_HEADER } #// BODY TEMPLATE OBJECT temp.bodyTemplate = TEMPLATE temp.bodyTemplate { #// Feeding the content from the Auto-parser to the TEMPLATE cObject: template =< plugin.tx_automaketemplate_pi1 #// What part of output from automaketemplate extension to feed into this TEPLATE object workOnSubpart = DOCUMENT_BODY subparts.menu_1_t3 < temp.menu_1_t3 #subparts.menu_1_t3 < temp.menu_2_t3 #subparts.menu_1_t3 < temp.menu_3_t3 subparts.searchbox_t3 < temp.searchbox_t3 subparts.footer_t3 < temp.footer_t3 subparts.content_left_t3 < styles.content.getLeft subparts.content_normal_t3 < styles.content.get #subparts.content_right_t3 < styles.content.getRight #subparts.content_border_t3 < styles.content.getBorder } #// PAGE is defined in globals.ts page.10 < temp.bodyTemplate page.10.headerData < temp.headerTemplate #// Add attributes to the body tag here, as needed ;-) #page.bodyTagAdd = class="some_class" #// Makes available the base link to the template. Use this to create hard links, but with dynamic path: #// ###ABS_PATH###inner_page/">Linked text #// Note: MARKS replacements need to follow "page.10 < temp.bodyTemplate", from above temp.homelink = TEXT temp.homelink.value < {$abs_path} temp.homelink.wrap = (This line corrects my syntax highlighting from line above) page.10.marks.ABS_PATH < temp.homelink #// Include javascript as needed page.headerData.100 = TEXT page.headerData.100.value = #page.headerData.100.value =