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

m13’s picture

"display fields" and chose "hidden" to the appropriate sections :)

[invalid since you need it ONLY if the field is empty]

mamadoo06’s picture

Thanks but YES I need to hide ONLY the empty fields, and display those which have content.

Any other ideas ?

elliotcapelo’s picture

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!