I'd like to allow a module to modify a $node to add a new free tag term as the node is being created.
I understand how to add a pre-existing term to the node, but I'm unsure as to the best way to add a new free tag (based on a dynamically created string).
I get the impression that if the vid for the freetagging vocabulary is 3, then the code should be
Requirement:
1. I have to write two uploading parts in the form of my node type module. One includes max to 10 inputs for uploading images and the other includes only 1 input for uploading a zip package.
2. I have to use multi-page form.
if ****_setting function adds options to the settings section on drupal admin. What function writes a new input option to ?q=node/add/page ? and how would this input be written back to my new table?
I think the upload module has a quite nice upload progress by using ajax(isn't it?).
I have tried to read the source code but it is quite hard for me to understand. I am a newbie about Drupal.
Could someone tell me how to use the upload API and ajax to upload a file?
In my module I need two parts of upload stuff. One includes max to 10 files to upload and the other includes only 1 file. So that means I cannot use the upload module since there is no limit about number of files and cannot separate into two parts. I have to write the module by myself...
I'm creating specific nodes for various types of content. One of the features of the nodes is the ability to create 'favorites'. I am trying to use a tab within a hook_menu (MENU_LOCAL_TASK) to do this. The hook_menu routine does not act as programmed, probably due to cacheing issues. I've tried clearing the cache, to no avail. Because the hook_menu behaves randomly it is almost impossible to debug. Sometimes the tab appears, sometimes it does not. Sometimes even simple changes, such as changing the title of the tab, shows up, and sometimes it doesn't.