Dear All,
I followed the node example of drupal 5.
1. But the preview display not working. Even the edit value will save correctly.
Meanwhile I'm debuging it, how to hide/block the preview (also the edit) button?
2. I add custom time field for my node. How to prepare it? Cause on database, it saved as unixtime, I need to process to display to form. Then save it later. (Convert it agan to unixtime)
3. Also, I want to allow user upload file, then my module can access that attachment (like put 5 last image of my nodes). Any idea / function / api for that?
Thanks.
Pipit.
pipit @ http://pipit.web.id
Quoting pipit milis@pipit.web.id:
- I add custom time field for my node.
How to prepare it? Cause on database, it saved as unixtime, I need to process to display to form. Then save it later. (Convert it agan to unixtime)
- Also, I want to allow user upload file, then my module can access
that attachment (like put 5 last image of my nodes). Any idea / function / api for that?
Sounds like a job for CCK [1][2].
[1] http://drupal.org/project/CCK [2] http://drupal.org/project/Modules/category/88
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/