[TYPO3-UG Spain] Otra duda de TypoScript
Oriam Corrales
ocorrales at ceis.cujae.edu.cu
Tue Feb 13 19:07:00 CET 2007
Como desde el setup de mi template puedo alterar el valor del bgcolor en un
TD de mi html.
Les pongo mi setup para que me den una idea, gracias.
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.htm
# 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/
}
# Menu 2 Menu principal cObject
temp.menu_2 = HMENU
# First level menu-object, textual
temp.menu_2.1 = TMENU
temp.menu_2.1 {
# Propiedades del estado Normal
NO.allWrap = <span class="menu-ppal-no_act"> | </span>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <span class="menu-ppal-act"> | </span>
}
# Objeto de menú de segundo nivel, textual
temp.menu_1 = HMENU
#Esto es para que en el menu secundario solo salgan los links a las pag de
ese nivel
temp.menu_1.entryLevel = 1
# Objeto de menú de segundo nivel, textual
temp.menu_1.1 = TMENU
temp.menu_1.1.wrap = <table border=0>|</table>
temp.menu_1.1 {
# Propiedades del estado normal:
#NO.allWrap = <div class="menu-secundario-no_act-2do_nivel"> | </div>
NO.allWrap = <tr><td><div
class="menu-secundario-no_act-2do_nivel">|</div></td></tr>
# Activar el estado activo y definir propiedades:
ACT = 1
#ACT.allWrap = <div class="menu-secundario-act-2do_nivel"> | </div>
ACT.allWrap = <tr><td ><div
class="menu-secundario-act-2do_nivel">|</div></td></tr>
}
# 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
# Sustituye la subparte ###menu_1### por el menú dinámico:
subparts.menu_2 < temp.menu_2
subparts.menu_1 < temp.menu_1
subparts.box_servicio_1_tex = TEXT
subparts.box_servicio_1_tex.value = {$box_servicio_1_tex}
subparts.box_servicio_1_img = TEXT
subparts.box_servicio_1_img.value = {$box_servicio_1_img}
# Sustituir la subparte ###content### con algún contenido de ejemplo:
subparts.content < styles.content.get
}
# 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
}
# 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
page.headerData. =
config.extTarget = _self
config.extTarget = _top
page.bodyTag = <BODY bgColor="{$bgColor}">
Oriam A. Corrales Robaina
Administrador Red Ceis, Cujae, Cuba
Estudiante 5to año Ing. Informática
Jabber: oriam at jabber.cujae.edu.cu
Messenger: oriamalejandro at yahoo.es
Tel 266 3804
__________________________________________
V Conferencia Internacional de Energía Renovable, Ahorro de Energía y Educación Energética.
22 al 25 de mayo de 2007
Palacio de las Convenciones, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/cier
More information about the TYPO3-UG-spain
mailing list