4 replies [Last post]
stompeers's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 09/19/2007
Juice: 208
Was this information Helpful?

I have a number of attributes for a product, and it would be helpful to be able to provide instructional labels, as you see in CCK nodes. What would be the simplest way to go about this? Do I need to hack a patch?

Thanks!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Any way to add a label to an attribute?

I'll give a +1 to this idea. Others have requested similar functionality. For now, the simplest thing to do would be a basic module using hook_form_alter() to add a description to the form elements. If you don't know how to do that, you may want to wait for an update. Eye-wink

stompeers's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 09/19/2007
Juice: 208
Re: Re: Any way to add a label to an attribute?

Thanks for the vote, Ryan. I am putting together a few functions that will help theme the attribute form a bit, and will post them when I'm done, just in case it might be helpful to someone else.

amitaibu@drupal.org's picture
Offline
Bug Finder
Joined: 09/08/2007
Juice: 239
Re: Re: Re: Any way to add a label to an attribute?

Excellent Smiling

stompeers's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 09/19/2007
Juice: 208
Re: Re: Re: Re: Any way to add a label to an attribute?

Here's the example: http://www.ubercart.org/forum/ideas_and_suggestions/813/heres_example_ho...

It doesn't add labels to the form, but allows you to edit the display of the form as you please, and so if you wanted to add labels, you could.