[TYPO3-UG Spain] TYPO3-UG-spain Digest, Vol 43, Issue 11
Giuseppe Luigi
glpunzi at gmail.com
Wed Jul 25 10:49:12 CEST 2007
Si, si lo intento pero, estoy en el siguiente punto del modern
template tutorial, pero no con la plantilla, que proponen, si no con
una que he sacado de owsd.org
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/blackandgreen/index.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 = 1
UL.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/blackandgreen/
}
# 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
# Substitute the ###nav### subpart with some example content:
subparts.navbar = TEXT
subparts.navbar.value = HELLO WORLD - MENU
# Substitute the ###content### subpart with some example content:
subparts.maintext = TEXT
subparts.maintext.value = HELLO WORLD - CONTENT
}
# 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
page.config.disableAllHeaderCode=1
page.10 =< plugin.tx_automaketemplate_pi1
Este código no me funciona, y no sé por qué. Se vé igual pero con las
marcas puestas en el HTML. Se supone que deberían estar los HELLO
WORLD y demás, y no entiendo por qué no aparecen.
El 25/07/07, Leo Barrientos C <lbarrientos at opensistemas.com> escribió:
> Con los ejemplos TypoScript del libro oficial y el de Mastering
> TypoScript es bastanta material para que queden muy bien tu sitios;
> siempre hay algunos truquitos que puedes sacara de typo3wizard - el
> problema es que está en alemán.
>
>
> Saludos.
>
> On Wed, 2007-07-25 at 09:53 +0200,
> typo3-ug-spain-request at lists.netfielders.de wrote:
> > Yo tambi?n ando pele?ndome con voil?.
> >
> > La verdad es que iba a comenzar us?ndola para un proyecto, pero por lo
> > que comentais se me quitan las ganas.
> >
> > Que opci?n/es (con su respectiva documentaci?n) recomendais a templa
> > voil??
>
> _______________________________________________
> TYPO3-UG-spain mailing list
> TYPO3-UG-spain at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-spain
More information about the TYPO3-UG-spain
mailing list