This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

appending info to $node->title in node module

i am trying to use hook_submit to append the creation date to the node title for a content module i am creating. i have tried the following code:

Adding a free-tag term to a $node

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

About upload file in my module

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.

How to add input field to add/page

Hi,

Myfirst attempt at a module is going ok ;-?

BUT....

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?

Thanks in advance.

Lee.

How to use upload API and ajax in drupal to do a upload work?

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...

hook_menu and cacheing

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.

Any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions