[Typo3-UG Italy] R: xhtml...tag img e tag e parametri inutili
Federico Bernardin
federico.bernardin at immaginario.com
Thu Oct 27 15:36:03 CEST 2005
Pe quanto riguarda rendere l'output xhtml compliant è sufficiente installare
questo plugin: Enhanced HTML cleaner
Per rendere l'output come lo vuoi tu ti basta rendere la struttura
tt_content come vuoi tu, ad esempio:
tt_content=COA
tt_content {
10=TEXT
10.field=header
10.wrap=<tr><td width="419" align="left" valign="top"><span
class="titnews">|</span><br /><br />
20=TEXT
20.field=bodytext
20.wrap=<span class="testo">|</span><br /><br /><img
src="fileadmin/template/file/images/linea_azz.gif" width="100%" height="1"
/><br /> <br />
30=IMAGE
30 {
file.import=uploads/pics/
file.import.field=image
file.import.listNum = 0
wrap=<td width="50"> </td><td width="250" align="center"
valign="top"><table width="250" border="0" cellspacing="19"
cellpadding="0"><tr><td align="left" valign="top" class="didascalia">|<br
/><br />
}
40=TEXT
40.field=imagecaption
40.wrap=|</td></tr></table><p class="didascalia"> </p></td><!-- finr
box foto + didascalia 2 --></tr>
}
temp.content=CONTENT
temp.content {
table=tt_content
select.orderBy=sorting
select.where=colPos=0
}
page.10.subparts.STORIA<temp.content
Questo è un esempio che ho usato io non ti serve più usare
styles.content.get, oppure modifichi i parametri di styles.content.get.
Ciao
Federico
> -----Messaggio originale-----
> Da: typo3-ug-italy-bounces at lists.netfielders.de [mailto:typo3-ug-italy-
> bounces at lists.netfielders.de] Per conto di Daniele
> Inviato: giovedì 27 ottobre 2005 14.48
> A: typo3-ug-italy at lists.netfielders.de
> Oggetto: [Typo3-UG Italy] xhtml...tag img e tag e parametri inutili
>
> Scusate se rompo, ultimamente sto riempendo il newsgroup di domande! :-)
>
> Come posso fare per inserire del contenuto di tipo testo-immagine, in modo
> tale che l'immagine non venga inserita in una tabella?
> Potrei allinearla con i css...
> Non capisco perchh Typo inserisca un sacco di tag che in concreto non
> servono a nulla, se si utilizzano gli stili.
> Come si eliminano "schifezze" tipo :
> <img src="clear.gif" class="spacer-gif" alt="" title="" border="0"
> height="5" width="1">
> In xhtml dovrebbe almeno avere il backslash alla chiusura del tag, senza
> parlare dei vari parametri non necessari.
>
>
> Daniele
>
More information about the TYPO3-UG-italy
mailing list