saludos,
me gustaría que un proyecto que estoy desarrollando fuera código válido.
me encuentro que cuando hay #DESCRIPTIF me da error en la validación.
parece como que le pone párrafo <p> y lo cierra, y parece que al validator
no le mola.
un ejemplo de bucle en el que sólo falla el #DESCRIPTIF y del error que me
arroja el validador de las 3w y las <p> de dónde salen ??
gracias.
ps. en local y con spip 2.03
<BOUCLE_resum_cites(ARTICLES) {lang?} {id_rubrique=147} {par hasard} {0,1}>
<h4>#SURTITRE</h4>
<h4>#DESCRIPTIF</h4>
<h4>[(#TITRE|supprimer_numero)]</h4>
[(#CHAPO|couper{460})]
<a href="#URL_SITE">#NOM_SITE</a>
</BOUCLE_resum_cites>
Line 380, Column 7: document type does not allow element "p" here; missing
one of "object", "applet", "map", "iframe", "button", "ins", "del"
start-tag.
<h4><p>"La violència només ajuda allí on la violència impera"</p></h4>
The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are
both allowed there and can contain the element mentioned. This might mean
that you need a containing element, or possibly that you've forgotten to
close a previous element.
One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>").
Prueba con esto:
[(#DESCRIPTIF|textebrut)]
Creo que le quita las <p>
JC
2009/2/18 <xabi@nodo50.org>:
saludos,
me gustaría que un proyecto que estoy desarrollando fuera código válido.
me encuentro que cuando hay #DESCRIPTIF me da error en la validación.
parece como que le pone párrafo <p> y lo cierra, y parece que al validator
no le mola.
un ejemplo de bucle en el que sólo falla el #DESCRIPTIF y del error que me
arroja el validador de las 3w y las <p> de dónde salen ??
gracias.
ps. en local y con spip 2.03
<BOUCLE_resum_cites(ARTICLES) {lang?} {id_rubrique=147} {par hasard} {0,1}>
<h4>#SURTITRE</h4>
<h4>#DESCRIPTIF</h4>
<h4>[(#TITRE|supprimer_numero)]</h4>
[(#CHAPO|couper{460})]
<a href="#URL_SITE">#NOM_SITE</a>
</BOUCLE_resum_cites>
Line 380, Column 7: document type does not allow element "p" here; missing
one of "object", "applet", "map", "iframe", "button", "ins", "del"
start-tag.
<h4><p>"La violència només ajuda allí on la violència impera"</p></h4>
The mentioned element is not allowed to appear in the context in which
you've placed it; the other mentioned elements are the only ones that are
both allowed there and can contain the element mentioned. This might mean
that you need a containing element, or possibly that you've forgotten to
close a previous element.
One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>").
_______________________________________________
Spip-es@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-es
~ Prueba con esto:
~
~ [(#DESCRIPTIF|textebrut)]
~
~ Creo que le quita las <p>
~
~ JC
sí, funciona!
gràcies JC!!
On Wed, Feb 18, 2009 at 10:59 AM, <xabi@nodo50.org> wrote:
~ Prueba con esto:
~
~ [(#DESCRIPTIF|textebrut)]
~
~ Creo que le quita las
~
~ JC
sí, funciona!
gràcies JC!!
en verdad algo más semántico sería
[
(#DESCRIPTIF)
]
Los h1, h2… son headers, o sea, títulos, y deberían ser usados para eso. No tiene mucho sentido (en cuanto a la semántica, insisto)
estructurar una « descripcion » dentro de un ecabezado de 4º nivel
el #EDIT{descriptif} es para dejar preparado los esqueletos para el uso del plugin Crayons, que permite editar los campos desde el sitio público (muy útil!). No afecta si no lo tenés instalado.
saludos.