[TYPO3-UG Spain] Saludos y dudas de TS

Francisco Cifuentes fcifuentes at opendigital.cl
Mon Feb 14 10:23:51 CET 2011


Hola Guiseppe,

Lo primero, ¿instalaste autoparser?... si no lo has instalado, debes
instalar esa extensión que es la que lee los id de los div y los
autoetiqueta, esa es una de las 3 formas de hacer templates además de
Templavoila y código puro typoscript.

Si de otra forma quieres utilizar solo typoscript, debes marcar tu mismo las
áreas de contenido con comentarios de esta forma:

<!-- ###AREA_CONTENIDO### begin -->
<!-- ###AREA_CONTENIDO### end -->

y en el main del typoscript:

subparts. AREA_CONTENIDO = TEXT
subparts. AREA_CONTENIDO < styles.content.get

o de otra forma solo si es una marca (sin comentarios)

###MI_MARCA###


y llamar desde el main del typoscript al área de contenidos de esta forma:

marks. MI_MARCA = HTML
marks. MI_MARCA < temp.miconfig

Espero te sirva, veo que la lista vuelve a la actividad.

Saludos!

Francisco.


El 13 de febrero de 2011 21:38, Giuseppe Luigi Punzi <glpunzi at lordzealon.com
> escribió:

> Hola a todos,
>
> Ni me acordaba que estaba registrado en esta lista, y mis últimas dudas
> las he posteado en la lista inglesa :P
>
> En el pasado estuve preguntando dudas por aquí, ya que Typo3 me gustó
> mucho, pero no tuve tiempo para dedicarle. Ahora, se me han presentado
> dos proyectillos webs que contengan blog, noticias, foros etc.. y quiero
> aprovechar para hacerlo con Typo3 y acostumbrarme a este CMF.
>
> Intentando aprenderlo, y puesto TV me ha dado problemas porque no me
> aparecen los TAGs para poder hacer el mapping, y debido que mucha gente
> en el pasado me recomendó que es mejor construir las plantillas con TS,
> pues me he decidido a mriarme el tuto de modern template building.
>
> El tema es, que en vez de hacerlo con la plantillla del tutorial, pues
> lo estoy haciendo con otra que descargué de oswd, en especial, ésta:
> http://www.oswd.org/design/preview/id/3699
>
> Resulta, que estoy haciendo todos los pasos que dice el tutorial, y
> estoy en la parte donde construye el menu, y tengo el Setup del template
> de la siguiente manera:
> # Configuring the Auto-Parser for main template:
> plugin.tx_automaketemplate_pi1 {
>    # Read the template file:
>  content = FILE
>  content.file = fileadmin/templates/RedTie/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
>  }
>    # Prefix all relative paths with this value:
>  relPathPrefix = fileadmin/templates/RedTie/
> }
>
> # Menu 1 cObject
> temp.menu_1 = HMENU
>  # First level menu-object, textual
> temp.menu_1.1 = TMENU
> temp.menu_1.1 {
>    # Propiedades del estado Normal
>  NO.allWrap = <div id="menu"> | </div>
>    # Enable active state and set properties:
> }
>
>  # Objeto de menú de segundo nivel, textual
> temp.menu_1.2 = TMENU
> temp.menu_1.2 {
>    # Propiedades del estado normal:
>  NO.allWrap = <div id="submenu"> | </div>
>    # Activar el estado activo y definir propiedades:
> }
>
>
>
> # 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 ###menu_1### subpart with some example content:
>  subparts.menu_1 < temp.menu_1
>
>  subparts.content = TEXT
>  subparts.content.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
> # 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
>
> El tema es, que me está ignorando. Es decir...en el código de la página
> generada, no me aparece las marcas que teóricamente tendría que hacer la
> ext del parser (las de <--- ### document body ### ---> etc..
> Y por otro lado, la página me sale tal cual se vé la plantilla de
> ejemplo, con sus datos y todos, vamos, que no la toca, quitando alguna
> referencia a las CSS en typo3tmp:
> http://www.lordzealon.com/t3/index.php?id=1
>
> Alguna sugerencia? Me encuentro estancado en esta tontería.
>
> Typo3 4.5.0
>
> Un saludo y muchas gracias.
> _______________________________________________
> TYPO3-UG-Spain mailing list
> TYPO3-UG-Spain at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-spain


More information about the TYPO3-UG-Spain mailing list