/*
internal.ts
Internal typoscript setup code
rev 0.1.0
revised 1.14.08
RAC
*/
#// 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 = 395, 56
transparentColor = #FEFEFE
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/times.ttf
fontSize = 24
fontColor = #167122
#// x-y coordinates for upper left corner of text:
offset = 65,42
align = left
}
}
}
#// Wraps the entire banner with this
#//1.wrap = |
}
#// 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
subparts.breadcrumbs_t3 < temp.breadcrumbs_t3
}
### Substitute some items using MARKS... ###
#This is another way to substitute items on the template page
# Copying the content from TEMPLATE for
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]