[Typo3] FCE ignore empty fields in frontend

Henry Wilhelm henry at hexhe.de
Thu Sep 8 13:20:20 CEST 2005


I have made some FCEs for example with header-field and bodytext-field.
How can I suppress wrapping of fields if they are empty (no text was 
inserted in backend)?
Following TS in datastructure of page template does not work:

10= COA
10 {
    10= RECORDS
    10 {
        tables = tt_content
        source.current=1
    }
    stdWrap.required = 1
    stdWrap.wrap = |
}

source-code of frontend-page looks like this:

	<!--  CONTENT ELEMENT, uid:327/templavoila_pi1 [begin] -->

		<a name="327"></a>
				<h6 class="content">H6 mit leerem Textabsatz</h6>
				<p class="content"></p>
			
	<!--  CONTENT ELEMENT, uid:327/templavoila_pi1 [end] -->
		
	<!--  CONTENT ELEMENT, uid:331/templavoila_pi1 [begin] -->
		<a name="331"></a>
				<h6 class="content"></h6>
				<p class="content"></p>

			
	<!--  CONTENT ELEMENT, uid:331/templavoila_pi1 [end] -->

As you see, <h6>-tags and <p>-tags are written, even if content is empty.
Does anybody know, how to suppress output of empty FCE-Content

-- 
Grüße von

Henry Wilhelm
Zenettistr. 38
80337 München
Tel.: +49 89 74 74 63 81
Fax: +49 89 74 74 63 82
email: henry at hexhe.de

»Wehe! Ewig undurchsichtig 
Sind die ewigen Gesetze 
Der menschlichen Wirtschaft! 
[...] 
Niemand benachrichtigt, niemand im Bilde! Aber den letzten 
Beißen die Hunde!«




More information about the TYPO3-english mailing list