I'm having a cck form having a file field for documents. Now, I want to have a hidden field which will be filled while validating form with value = 'Image of first page of document'. I've done that.
Now, my query is that how will I perform this to my existing nodes? One possible solution is to edit each node one by one.. But, its very tedious and manual task.
Can anyone please help me?
Comments
Comment #1
markus_petrux commentedYou need to create a small program to perform this. Use a query to read the nids of the nodes that you need to process, then use node_load() to obtain the full node object, then alter the node object, then use node_save().
If you don't know how to write such a program, then please read the handbooks, or ask in the development forums.