[Typo3-UG Spain] Para que sirve css_styled_content?

Guerrero Lucendo, Antonio aguerrero at umh.es
Mon Jan 26 12:43:07 CET 2004


Hola Sergio,

Muchas gracias por contestar, pero lamentablemente SIGO SIN ENTENDER que es
lo que hace el css_styled_content.

Por ejemplo: yo tengo una web con css_styled_content y otra sin él (con un
pequeño código que me pasaron en la lista inglesa (ver al final del mail)),
y ambas se ven IGUAL (ambas cogen mi plantilla con el template selector)!!!

Entonces ¿Cuál es la diferencia de usarlo a no usarlo?

Por favor, parece una tontería pero para mi es muy importante para poder
seguir profundizando en la dinámica de funcionamiento del typo3.

Un saludo,
Antonio Guerrero.



**********************************************************
************************* Code ***************************
**********************************************************

************ Constants: ************

# Targets, empty for no-frames websites
PAGE_TARGET =
content.pageFrameObj =

plugin.faq.backPid = 11
plugin.faq.PIDItemDisplay = 22
plugin.faq.file.templateFile = faq_template*.tmpl
Articles.disableSelectors =

# Activates RTE
content.RTE_compliant = 1

#to have Headers in Content-Elements rendered as <h1>
#if the "Layout"-Type of the header is set to "Normal". 
content.defaultHeaderType = 1

#to get rid of the default stylesheet in cSet Stylesheet 
content.stylesheet.file = content.wrap.header4 = <h6>|</h6>

************ Setup: ************

config.language = es

#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 HEAD / Content Area temp.
headTemplateCA = TEMPLATE temp.headTemplateCA {
     # Feeding the content from the Auto-parser to the TEMPLATE cObject:
   template < temp.contentArea.template
     # Select only the content between the <head>-tags
   workOnSubpart = DOCUMENT_HEADER
}

# Setting up 'page' to be the default PAGE object (type=0) 
lib.stdheader.10.stdWrap.wrap = tt_content.stdWrap.dataWrap = <A
name="{field:uid}"></a>

# 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

# Copying the content from Content Area TEMPLATE for <head>-section: 
page.headerData.20  < temp.headTemplateCA

plugin.tx_automaketemplate_pi1.content < plugin.tx_rlmptmplselector_pi1
plugin.tx_automaketemplate_pi1.content.defaultTemplateFileName =
template_1.html
plugin.tx_dearticles_pi1._CSS_DEFAULT_STYLE = 
plugin.tx_mininews_pi1._CSS_DEFAULT_STYLE =

#generate xhtml-code
config.xhtml_cleaning = all

#disable target attribute in the sitemap content element 
tt_content.menu.20.1.1.target =

#remove CSS-attributes for p and pre-tags 
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
   P.style=
   PRE.style=;
}

#remove <br> after <h1>
lib.stdheader.10.stdWrap.wrap =

#Remove <p> tags around <li> items 
tt_content.bullets.20.3.split.1.wrap = 
tt_content.menu.20.1.1.wrap =<p> | </p>
tt_content.menu.20.1.1.NO.allWrap = | <br />
tt_content.menu.20.1.1.NO.ATagBeforeWrap = 0 
tt_content.uploads.20.default.split.1.filelink.file.postCObject.wrap = <br
/>
tt_content.menu.20.1.1.NO.linkWrap = |

#no wrapping of RTE lines
tt_content.text.20.parseFunc {
  nonTypoTagStdWrap.encapsLines.nonWrappedTag >
  nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = <p>|</p>
}

# settings for RTE-bullet lists 
tt_content.text.20.parseFunc.tags.typolist.default.wrap = <ul> | </ul>
tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap = <li> |
</li>
tt_content.text.20.parseFunc.tags.typolist.1.fontTag = <ol> | </ol>
tt_content.text.20.parseFunc.tags.typolist.1.split.1.wrap = <li> | </li>

-----Mensaje original-----
De: Sergio [mailto:sergio at corecanarias.com] 
Enviado el: lunes, 26 de enero de 2004 12:22
Para: TYPO3 Usergroup Spain
Asunto: Re: [Typo3-UG Spain] Para que sirve css_styled_content?

Buenas :)

>              Por ejemplo, ¿alguien me puede explicar más o menos que hace
el
> css_styled_content realmente? O sea, ¿aporta algo nuevo o solo quita
> trabajo? ¿Qué tendría que hacer si quiero pasar  de usar el
> css_styled_content, pero poder usar el template selector y el autoparser?


	Según entiendo tiene como fin sustituir el antiguo modo de
"renderizar"
de las plantillas estáticas tipo "content (default)" y esas... La idea
(lo que yo entiendo) es ir hacia un modelo más moderno de XHTML+CSS de
llevar el contenido y el diseño. Eso es lo que aporta de nuevo. Sobre si
ahorra trabajo... personalmente creo que sí. El TypoScript (TS) es bueno
para algunas cosas pero una pesadez para muchas otras. Hay cosas en las
plantillas que no creo que sea necesario andar trasteando con TS, que es
algo nuevo a aprender, sino que se puede dejar en manos de un diseñador
que (se supone) ya sabrá CSS y HTML/XHTML.

	Lo de quitar trabajo, sabiendo CSS y HTML/XHTML si que lo hace.
Reduce
la curva de aprendizaje bastante (nos ahorramos aprender todo un nuevo
lenguaje!!). Pero claro, eso suponiendo que sepas de lo otro.

	Y sobre lo último, puede usar el template selector y el auto parser
sin
css_styled_content... no tienen nada que ver, aunque son complementos
perfectos si se busca lo que digo arriba.

>        Por favor, echarme una mano que no soy programador (se algo de php)
y
> todo me cuesta el doble.
> 
>        Un saludo,
>        Antonio Guerrero.
> 
>        PD: ¿deberían avisar a los incautos como yo que no se adentren en
el
> typo3 si no saben programar?

	Bueno... todo depende de como se enfoque. Para sacarle el máximo
partido a PHP, según yo lo veo, haría falta un equipo multidisciplinar:
alguien que sepa de PHP, alguien que sepa de diseño y alguien que se
encargue de los contenidos. Siempre se pueden condensar las tareas en
una sola persona, pero claro, de algún lado de acabará cogeando.
	Puede usar Typo3 sin saber PHP, pero eso te limitará su uso y no
podrás
tener todas las características que tu quieras. Puedes usarlo sin ser un
gran diseñador y sabiendo PHP, tendrás un sitio hiperpotente y con
montón de funcionalidades, pero seguramente te sale un sitio bastante
feucho.

-- 
Sergio Sánchez Ramírez      Desarrollo de Sistemas
CORE be digital S.L.

web:    http://www.corebedigital.com    teléfono: 922 65 25 14 
jabber: sergio.core at jabberes.org
msn:    sergio at corecanarias.com 


_______________________________________________
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