I'm using this article as a reference for creating a custom CCK module.
Basically my end goal is to have a field with rate, season, frequency and dates as one group field for a real estate site and you can add more lines easily. There's no current module that I could find that let's you group dropdowns and text fields into one field.
I have created a new column in the database for each field, ie. rate, season, etc.
I've got the form part of the widget working and saving correctly. My question is how do I make it render when you view the node? Is there no default behavior? I thought maybe it would spit out the fields with a label like it does when you add a text or number field.
What function gets called when you view the node? I thought it was the _field() hook but I put a die statement and nothing happened. Please help!
Comments
Anybody, please?
For the life of me I can't find where to render the custom CCK field I created.
PLEASE!!??
Ahhhh!!!!?!
Here's what I'm going for
http://drupal.org/node/278843
When is the view event fired withing the _field hook?
I can't figure out when it's called, I would think either when the node is saved or viewed but I can't seem to get the event to fire off.
May be the problem
http://drupal.org/node/278875
I can't get the display fields dropdown to populate. Here is my code:
But nothing is populating, is there some place else that's keeping it from populating?!?
I think I found my answer
http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-f...
Hallelujah, this is what I need!
Also another compounded CCK field example..
http://drupal.org/project/education_field