Hiding nodereferrer (read-only) field when initially creating node?

Fayna - January 24, 2008 - 05:03
Project:Content Construction Kit (CCK)
Version:5.x-1.x-dev
Component:fieldgroup.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is this possible or is it too complicated? As of right now, when I first create nodes with the nodereferrer field in it, it displays the label with nothing below it, which may be confusing for some users.

Maybe it can be hidden when there are no references yet. When at least one reference is made in the nodereferrer field, it can display.

To clarify: I am not talking about "Display fields", which can easily be hidden if need be. It's the node creation form. :/

Thanks for such a great module! :-)

#1

Fayna - January 24, 2008 - 05:07

Ah I see my problem... I have two nodereferrer fields in a fieldgroup, and the fieldgroup is showing but not the fields themselves. Sorry about that.

Should I just not put them in a fieldgroup?

#2

dopry - January 24, 2008 - 16:57
Status:active» active (needs more info)

Try not putting them in a field group. I think this is an upstream issue with CCK. If moving the node referrer fields from the field group doesn't hide the labels, switch this feature request to CCK with a title along the lines of 'Add a field label display option of hide if empty to display fields.' Otherwise switch it to fieldgroup.module.

#3

yched - January 28, 2008 - 12:16

Not putting them in a fieldgroup works.
Problem is, fieldgroup.module only hides the form fieldset if there are no form fields in it.
Not sure how we could detect the form element is actually empty.

#4

dopry - January 29, 2008 - 05:24
Project:NodeReferrer» Content Construction Kit (CCK)
Version:5.x-1.x-dev» 5.x-1.x-dev
Component:User interface» fieldgroup.module

#5

dopry - July 24, 2008 - 09:09
Status:active (needs more info)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.