[TYPO3-UG Spain] problemas con htmlarea

Alberto Campos Galeano a.campos at dimension-informatica.es
Thu Jul 5 10:34:15 CEST 2007


Hola Nicolás, recojo el testigo de Enrique con este problema. Creo que tu solución sería válida si la etiqueta h2 nos apareciera como código html, pero el navegador nos los muestra como texto. Este es el código fuente que se genera: "<h2 style="font-weight: bold;">" para heading2 y negrita. Las etiquetas p, em, ... se están mostrando sin problemas, no así todas las de encabezado.

Un saludo y gracias por tus respuestas.  


 
Alberto Campos Galeano
Programador
a.campos at dimension-informatica.es
Tel. 902 525 777 · Fax 902 525 778  · Sede Central: Valencia (Av. Cataluña, 11 - 46020 )
http://www.dimension-informatica.es · Deleg.: Barcelona - Castellón - Madrid - Murcia - Vigo
 ·················································································································································································································
P    Antes de imprimir este mensaje, por favor compruebe si es necesario. El Medio Ambiente es cuestión de TODOS. 
·················································································································································································································
 Este mensaje y sus adjuntos, van dirigidos, de manera exclusiva, a su destinatario y contienen información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la ley.
 This message and its annexed, are intended exclusively for the person to whom it is addressed and contain privileged and confidential information protected from disclosure by law. If you are not the addressee indicated in this message, you should immediately delete it and any attachments and notify the sender by reply e-mail. In such case, you are hereby notified that any dissemination, distribution, copying or use of this message or any attachments, for any purpose, is strictly prohibited by law.
 

-----Mensaje original-----
De: typo3-ug-spain-bounces at lists.netfielders.de [mailto:typo3-ug-spain-bounces at lists.netfielders.de] En nombre de Nicolas Puente
Enviado el: martes, 03 de julio de 2007 9:09
Para: TYPO3 Usergroup Spain
Asunto: Re: [TYPO3-UG Spain] problemas con htmlarea

Enrique, perdóname, me equivoqué al decirte que lo pongas en el TS, es en el setup.

En el setup al final va

#Items in header_layout
TCEFORM.tt_content.header_layout.removeItems = 0, 5, 100
TCEFORM.tt_content.header_layout.altLabels.1 = Titulo #equivale a H1
TCEFORM.tt_content.header_layout.altLabels.2 = Subtítulo 1 #equivale a H2
TCEFORM.tt_content.header_layout.altLabels.3 = Subtítulo 2 #equivale a H3
TCEFORM.tt_content.header_layout.altLabels.4 = Ningún contenido. 
#equivale a nada, sin contenido

# Para los títulos en setup
lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
   key.field = header_layout
   # Layout 1
   1 = TEXT
   1.field = header
   1.wrap = <h1> | </h1>

   # Layout 2
   2 = TEXT
   2.field = header
   2.wrap = <h2> | </h2>

   # Layout 3
   3 = TEXT
   3.field = header
   3.wrap = <h3> | </h3>

   # Layout 5 - Nichts
   5 = TEXT
   5.field = header
   5.wrap = |
   default < .4
}


#Items in header_layout, para que lo vean los redactores TCEFORM.tt_content.header_layout.removeItems = 0, 5, 100
TCEFORM.tt_content.header_layout.altLabels.1 = Titulo #equivale a H1
TCEFORM.tt_content.header_layout.altLabels.2 = Subtítulo 1 #equivale a H2
TCEFORM.tt_content.header_layout.altLabels.3 = Subtítulo 2 #equivale a H3
TCEFORM.tt_content.header_layout.altLabels.4 = Ningún contenido. 
#equivale a nada, sin contenido


Las clases correspondientes en el css, tú tienes que poner tus columnas.
/* Columna 1 y dos */
#eins_col h1,  #eins_col h2, #eins_col h3, #zwei_cols_eins h1,  #zwei_cols_eins h2, #zwei_cols_eins h3, #drei_cols_eins h1,  #drei_cols_eins h2, #drei_cols_eins h3,, #drei_cols_zwei h1,  #drei_cols_zwei h2, #drei_cols_zwei h3 {
    color : #A03323;
    padding-top: 0pt;
    padding-right: 0pt;
    padding-bottom: 0pt;
    padding-left: 25px;
    background-image: url(bilder/bullet.gif);
    background-repeat: no-repeat;
    background-x-position: 0pt;
    background-y-position: 1px;
    border : thin solid #ffffff;
    border-width : 0 0 1px 0;
}
#eins_col h1, #zwei_cols_eins h1, #drei_cols_eins h1, #drei_cols_zwei h1 {
    font-size : 11pt;
}
#eins_col h2, #zwei_cols_eins h2, #drei_cols_eins h2, #drei_cols_zwei h2 {
    font-size : 10pt;
}
#eins_col h3, #zwei_cols_eins h3, #drei_cols_eins h3, #drei_cols_zwei h3 {
    font-size : 9pt;
}

/* Columana 3 (derecha)*/
#rechtespalte h1,  #rechtespalte h2{
    color : #A03323;
    padding-top: 0pt;
    padding-right: 0pt;
    padding-bottom: 0pt;
    padding-left: 20px;
    background-image: url(bilder/bullet.gif);
    background-repeat: no-repeat;
    background-x-position: 0pt;
    background-y-position: 1px;
    border : thin solid #ffffff;
    border-width : 0 0 1px 0;
}
#rechtespalte h1 {
    font-size : 9pt;
}
#rechtespalte h2 {
    font-size : 8pt;
}

Esto funciona 100%. Yo lo he usado más o menos igual en varios sitios y funciona.
Saludos.
_______________________________________________
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