comkreet
Joined: 11 Aug 2006 Posts: 4
|
Posted: 16 Aug 2006 - 7:34 am Post subject:
|
|
|
here is the setup script
i use the tx_automaketemplate_pi1 to
| Line: |
Code: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
| |
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main.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
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
#### banner shitze TOP
subparts.bannertop < plugin.tx_macinabanners_pi1
subparts.bannertop {
# show banners with this attribute. Options are: top, left, bottom, right
placement = top
#mode to show banners. Options are: all, random
mode = random
# list of page IDs where the banners should be taken from (comma seperated. i.e.: 1,5,7)
pidList = 62
# levels of recursion to search for banners
recursive = 2
# Limit number of banners
results_at_a_time = 2
}
marks.bannertop < subparts.bannertop
#### banner shitze rechts
subparts.bannerrechts < plugin.tx_macinabanners_pi1
subparts.bannerrechts {
# show banners with this attribute. Options are: top, left, bottom, right
placement = right
#mode to show banners. Options are: all, random
mode = random
# list of page IDs where the banners should be taken from (comma seperated. i.e.: 1,5,7)
pidList = 62
# levels of recursion to search for banners
recursive = 2
# Limit number of banners
results_at_a_time = 2
}
marks.bannerrechts < subparts.bannerrechts
###hoofd menu ###
subparts.main_menu = HMENU
subparts.main_menu.entryLevel = 0
subparts.main_menu.1 = TMENU
subparts.main_menu.1 {
expAll = 0
NO.allWrap = <hr> |<br>
}
subparts.main_menu.2 = TMENU
subparts.main_menu.2 {
expAll = 1
NO {
allWrap = |<br>
beforeImg = media/bullets/bullet1_n.gif
beforeROImg = media/bullets/bullet1_h.gif
RO = 1
}
}
#### sub menu
/// menu - click toon subpaginas vanuit een DIR
subparts.sub_menu = TEXT
subparts.sub_menu.value = SUB MENU
subparts.sub_menu = HMENU
subparts.sub_menu.special = directory
subparts.sub_menu.special.value = 2
subparts.sub_menu.1 = TMENU
subparts.sub_menu.1.NO {
linkWrap= <div id="submenu_item">|</div>
}
###main_content###
subparts.main_content < styles.content.get
subparts.main_content.renderObj.stdWrap.wrap=<div id="kader"> | </div><br>
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
|
|
Show complete code
|
|
|