[TYPO3-UG Spain] problemas con htmlarea

Alberto Campos Galeano a.campos at dimension-informatica.es
Thu Jul 5 14:24:16 CEST 2007


Hola Nicolás, ya hemos encontrado la solución, disculpa no haber posteado antes pero estamos peleándonos para configurarlo. No era un problema del editor, sino que en la static template por defecto no están incluidas las etiquetas header entre las permitidas. La solución ha sido incluir styles.content.links.allowTags = h1, h2, ... en la sección de constantes de la página.

Muchas gracias por tu interés, espero que podamos devolverte la ayuda algún día, saludos.


 
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: jueves, 05 de julio de 2007 14:09
Para: TYPO3 Usergroup Spain
Asunto: Re: [TYPO3-UG Spain] problemas con htmlarea

No sé dónde está el problema, pero yo uso ese método y funciona. Se genera un html normal, no se traduce en ningún momento los caracteres. 
Pero yo no sé porqué a vosotros no os funciona. Si quieres déjame ver tú código y quizá dé con el problema. Yo lo uso en www.lgb-rlp.de y en
http://www.ev-kirche-hochheim.de/index.php?id=56 (página que está en construcción).
Con esto se generan todos los títulos iguales.
Si quieres generar p, tr, o td, ul, ol, li, o lo que sea tienes que usar otras clases, pero funciona.
Saludos.

Es el template para tres columnas:

<!-- ###DREISPALTIG### -->
<!--TYPO3SEARCH_begin-->
    <DIV id="gesamt_content">
        <DIV id="header">
            <DIV id="headerimage">###HEADER_IMAGE###</DIV>
            <DIV id="logo"><a name="Home" id="Home" 
href="http://www.ev-kirche-hochheim.de/" title="Home"><img src="fileadmin/test/bilder/kirche_logo.jpg" alt="Kirche Logo" 
width="110" height="110" border="0" title="Kirche Logo"></a></DIV>
        </DIV>
        <DIV id="navigationsleiste">###NAVIGATIONSLEISTE###</DIV>
        <DIV id="navi">
            ###MENU_LINKS###
            ###searchbox###
        </DIV>
        <DIV id="drei_cols_eins">###INHALT###</DIV>
        <DIV id="drei_cols_zwei">###INHALT2###</DIV>
        <DIV id="rechtespalte">    ###INHALT_RECHT###</DIV>
        <DIV id="nav_unten">
            <DIV id="subnavigation">###SUBNAVI###</DIV>
            <DIV id="druckversion">    ###DRUCKVERSION###</DIV>
        </DIV>
        <DIV id="copyright">###COPYRIGHT###</DIV>
    </DIV>
<!--TYPO3SEARCH_end-->
<!-- ###DREISPALTIG### -->



En el setup

# Default PAGE object:
seite = PAGE
seite {
    bodyTag = <body>
    noLinksUnderline = 0
    typeNum = 0
   
    # CSS-Datei einbinden
    includeCSS{
        fie1 = fileadmin/test/styl_ns.css
        file1.media = all
        file1.title = stylsheet für die Ausgabe an Bildschirm
    }
    10 = TEMPLATE
    10 {
        template = FILE
        template.file = fileadmin/test/vorlage.htm
        workOnSubpart = EINSPALTIG
        marks {
            HEADER_IMAGE < temp.headerbild
            NAVIGATIONSLEISTE< temp.navigationsleiste
            MENU_LINKS < temp.NAVI
            searchbox >
            searchbox < plugin.tx_macinasearchbox_pi1
            INHALT < temp.INHALT
            INHALT2 < temp.INHALT2
            INHALT_RECHT < temp.CONTENT_RIGHT
            SUBNAVI < temp.SUBNAVI
            DRUCKVERSION < temp.DRUCKVERSION
            COPYRIGHT < temp.COPYRIGHT
        }
     }
}

#Überschrift
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 4 - Nichts Para que no enseñe nada
   4 = TEXT
   4.field = header
   4.wrap = |
   efault < .4
}

Esto va en el TS root de la página

#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

Esto en el css.
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;
}


_______________________________________________
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