47 Posts
zaliyanna
8 years ago
7
Topic

Hi , 

I'd like to know if I can show the label of empty field in content view

thanks for answer

Get a Book for SEBLOD
572 Posts
_jrmo
8 years ago
6
Level 1

Hi there,

You can. The way I would do it is to use a position override. If you use $cck->RenderField('field_name'); for all of your fields for your Content View, it will show the label even if the value is empty.

James

47 Posts
zaliyanna
8 years ago
5
Level 2

thanks jrmo for your answer  

I 'll try this way 

47 Posts
zaliyanna
8 years ago
4
Level 3

Hello jrmo 

I tried but It's too heavy because I have more than 70 fields per form and I have more than 4 diffrents forms I'd like to have an better solution

any idea 


Thanks

595 Posts
Octopoos - Mehdi
8 years ago
3
Level 4

Hi Meriam,

I don't understand. Would you like to display the label of a field even when it has no value?

What would you like to do that?

Regards,
Mehdi

47 Posts
zaliyanna
8 years ago
2
Level 5

HI mehdi 

Yes that is what I wanna do but I don't want to right another template 

I need it to know which field are not filled

595 Posts
Octopoos - Mehdi
8 years ago
1
Level 6

Hi Meriam,

I understand what you want to do but i don't know if it's a right solution to know which field is not filled.

Is this feature for you as developer or for a client?

You can use a typo plugin html with this configuration : *label* : $cck->renderField('field_name')

Regards,
Mehdi.

47 Posts
zaliyanna
8 years ago
0
Level 7

Hi Mehdi thanks for your answer ,

If you have a better Idea to know if there are empty fields please give it to me . Thank you

Get a Book for SEBLOD