[Typo3-UG Oesterreich] Hat das schon jemand bemerkt?
gk at plan2.net
gk at plan2.net
Wed Sep 10 16:10:54 CEST 2003
Franz,
At 15:37 10.09.2003, Franz P. Kratochvil wrote:
>>http://typo3.org/doc.0.html?&encryptionKey=&tx_extrepmgm_pi1[extUid]=270&tx_extrepmgm_pi1[tocEl]=338&cHash=6a7c6eecbb
>>
>
>danke, ich kenn diese Tipps aus dieser Diskussion:
>http://typo3.org/1422+M5ede10d4d7d.0.html (jetzt muss ichs nur noch
>endlich ausprobieren).
>Kaspers Haltung war damals (Dez.2002) nicht ganz eindeutig:
>....
>1) XHTML compliance has been evaluated by the core group. We found that it
>is of absolutely minor cosmetic significance compared to the countless of
>other things we want to spend our time on. So we are not inclined to make
>TYPO3 XHTML compliant in every little TypoScript function due to this.
>.....
Dies hat sich mittlerweile, auf Anfrage und Druck vieler, eben geaendert;
IMHO funktioniert die xhtml cleaning Sache schon recht gut; zusaetzlich
kannst Du ja mittels TS alles entfernen, was Du nicht willst;
Check mal den Anhang unten an von Sacha;
>>zusaetzlich kannst Du tidy zum OutputParsen verwenden und nach Deinen
>>Wuenschen konfigurieren:
>>http://typo3.org/doc.0.html?&encryptionKey=&tx_extrepmgm_pi1[extUid]=262&tx_extrepmgm_pi1[tocEl]=219&cHash=9fc6d6a2c2
>>
>
>Tja, Tidy...wenn mir mein Hoster das endlich - trotz Nachfrage - mal am
>Server installieren koennte. Muss es doch, oder hab ich da ein
>Verstaendnisproblem? Ich hab Tidy bisher nur offline zum HTML-ausputzen
>verwendet.
Richtig, es muss am Server installiert sein, wenn er's nicht anbietet,
wechsle den Hoster; (zB. www.abaton.at );
(oder leg Dir einfach ein statisch kompiliertes tidy binary in den webspace
das sollte auch funktionieren)
hth georg
------
yes, my site passes the validator as you can see in the result the second
link points to. Of course there are still a lot of things you`ll have to
take care of. Like if you add a link to header in the bagend the result
will be <a><h1>header</h1></a> or the <p><ul></p> stuff etc. But it is a
first step and maybe it fits your needs.
Here`s the additional TS-code I use to clean up the code:
CONSTANTS:
###############################################
#enable/disable RTE conversion
content.RTE_compliant = 1
###############################################
SETUP:
###############################################
#code cleanup section
###############################################
###############################################
#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=;
}
###############################################
###############################################
#no wrapping of RTE lines
tt_content.text.20.parseFunc {
nonTypoTagStdWrap.encapsLines.nonWrappedTag >
nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = <p>|</p>
}
###############################################
###############################################
#remove <br> after <h1>
lib.stdheader.10.stdWrap.wrap =
###############################################
###############################################
#Remove <p> tags around <li> items (try to ;-))
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 = |
###############################################
###############################
# Einstellungen für Listen aus RTE
tt_content.text.20.parseFunc.tags.typolist.default.wrap = <ul
class="list01"> | </ul>
tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap = <li > | </li>
tt_content.text.20.parseFunc.tags.typolist.1.fontTag = <ol class="list01">
| </ol>
tt_content.text.20.parseFunc.tags.typolist.1.split.1.wrap = <li > | </li>
###############################################
--
Ciao,
Sacha
More information about the TYPO3-at
mailing list