/* internal.ts Internal typoscript setup code rev 0.1.0 revised 6.28.07 COMPANY NAME */ #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/internal.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 SPAN.id.breadcrumbs_t3 = 1 SPAN.id.title_t3 = 1 } #// Prefix all relative paths with this value: #// Our convention is fileadmin/template/ relPathPrefix = fileadmin/template/ } #// CUSTOM bunch of links temp.Links = COA temp.Links{ 5 = IMAGE 5.file = fileadmin/images/email.gif #5.params = align="left" 10=TEXT 10.value =   20 = USER 20.userFunc = tx_tipafriend->main_tipafriend 20.templateFile = fileadmin/template/tipafriend_template.tmpl 20.code = TIPLINK 20.typolink.parameter = 36 40 = TEXT 40.value =    50 = IMAGE 50.file = fileadmin/images/print.gif 55=TEXT 55.value =   #// "Print this page" link; requires "cronprintlink" extension be installed 60 = USER 60.userFunc = tx_cronprintlink_pi1->main 60.popup = 1 80 = TEXT 80.value =    #// Increase/decrease text size, requires textsizer .js. Enable below, and make sure .js is available 100 = HTML 100.value = } #// BREADCRUMBS MENU temp.breadcrumbs_t3 = HMENU temp.breadcrumbs_t3 { #// If pages set as "Not in menu" should be shown on breadcrumb includeNotInMenu = 1 #// This makes it a breadvrumb menu special = rootline #// First item in the HMENU, is a TMENU (text menu) 1 = TMENU 1 { #// Separate links with double-right arrow NO.linkWrap = | >  |*||*| | #// set what field should be shown as menu item... description,title NO.ATagTitle.field = description #// Include the current page in the menu CUR = 1 #// Don't link current page CUR.doNotLinkIt = 1 } } #// Page title banner #// Graphical Banner that is the page title temp.title_t3 = COA temp.title_t3{ 1 = IMAGE 1{ file = GIFBUILDER file { #// Size in px for the final image XY = 563,35 #// Background image for the banner 5 = IMAGE 5.file = fileadmin/template/images/banner_bg.gif #// Text of the page name 10 = TEXT 10{ text.field = title #// Use a specific font , otherwise comment out and it uses arial: #fontFile = fileadmin/template/fonts/avgardm.ttf fontSize = 17 fontColor = #FFFFFF #// x-y coordinates for upper left corner of text: offset = 16,22 align = left #// Text character spacing spacing = 1 } #// Adds another image to the banner we are building here 15 = IMAGE 15.file = fileadmin/template/images/banners/home.gif 15.offset= 478,0 } } #// Wraps the entire banner with this 1.wrap = | } temp.menu_1 = HMENU #// Define what level on the tree the menu should start. 0 is the very frst page (usually dont show this) temp.menu_1.entryLevel = 1 #// First level menu-object, TEXT MENU temp.menu_1.1 = TMENU #// Wraps entire TMENU with this temp.menu_1.1.wrap = temp.menu_1.1 { #// Expand all menus 1=yes 0=no expAll = 0 #// Normal state properties NO.allWrap = NO.stdWrap.htmlSpecialChars = 1 #// Enable active state and set properties: ACT = 1 ACT.allWrap = ACT.stdWrap.htmlSpecialChars = 1 } #// Second level menu-object, textual temp.menu_1.2 = TMENU temp.menu_1.2 { #// Normal state properties NO.allWrap = NO.stdWrap.htmlSpecialChars = 1 #// Enable active state and set properties: ACT = 1 ACT.allWrap = ACT.stdWrap.htmlSpecialChars = 1 } #// 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 } ### END HEADER TEMPLATE OBJECT ### #// 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 subparts.title_t3 < temp.title_t3 } ### Substitute some items using MARKS... ### #This is another way to substitute items on the template page temp.homelink = TEXT temp.homelink.value < {$abs_path} temp.homelink.wrap = page.10.marks.HOME_A_TAG < temp.homelink #Define the stylesheet page.stylesheet = fileadmin/template/css/global.css page.config.doctype = xhtml_trans # Copying the content from TEMPLATE for -section: #Cpy the temp.templates into the page page.10 < temp.bodyTemplate page.10.headerData < temp.headerTemplate #Forces sitemap to link to top window (otherwise opens new window) tt_content.menu.20.2.1.target = #Include swfobject javascript page.headerData.100 = TEXT page.headerData.100.value = #Text resizer stuff #page.headerData.110 = TEXT #page.headerData.110.value = #Add some stuff to body tag page.bodyTagAdd = class="body_2" #// END DEFAULT PAGE OBJECT ### #// Alternate page, a printable version in this case page_p = PAGE page_p.typeNum = 98 page_p.config.doctype = xhtml_trans page_p.15 = TEXT page_p.15.value = page_p.15.stdWrap =

|

page_p.stylesheet = fileadmin/template/css/style_print.css page_p.20 = CONTENT page_p.20 { table = tt_content select { pidInList = this orderBy = sorting } } #// End printable page #// CONDITIONS #// You can setup some simple "If/else" Type functionality like this... [globalVar = TSFE:id = 91] #// do this if page id is 91 [else] #// otherwise it will do this [end]