I just picked up the spajax module, loving it. I seriously recommend it to everyone, with some knowledge of JS
Anyway i thought of a good idea to actually use Ajax in Drupal without breaking these very reasonable rules, more specifically not breaking the back button. Ok enough blabbin on.
I create a node type module and write a form for it. I have another table for this type so I use mynode_insert and mynode_update function. But when I edit my content and update it, some fields in the custom table can be updated and some not. I dont know why...
I've created a custom node type, and I've created a custom template 'node-custom.tpl.php' file. I've been reading about all the default variables that are available for a node template (http://drupal.org/node/11816). Can someone explain how I might go about creating a new variable, that would be available in a node template, to store data from a custom field?
Example (in 'node-custom.tpl.php'): <div class="customfield"><?php print $customfield ?></div>
How can I add note directly in the database? I already done it with my database but after that when i create new node (in drupal) it alert error: " Dulicate node id". Please help me.