By mamadoo06 on
Hi there,
I use Content Template and my problem is that if a non mandatory field is empty, Content Templates displays its name.
Example : if the field "Car options" is left blank when creating the page, Content Templates displays :
"Car options : " and no data.
How NOT to display "Car options" ONLY if this field is blank ?
Many thanks
Comments
go to
"display fields" and chose "hidden" to the appropriate sections :)
[invalid since you need it ONLY if the field is empty]
Thanks but YES I need to hide
Thanks but YES I need to hide ONLY the empty fields, and display those which have content.
Any other ideas ?
title displays for empty fields when content template is enabled
Im also having this problem, if I disable the content template for the content then EMPTY fields don't display the title. But if I do enable the content template the empty fields display the title of the field. Does anyone know any php code we can put into it to hide the title if the field has no content.
Many thanks!