I was wondering if it is somehow possible to add a node to a module, for example if I've created the module 'example', is it then possible for me to create a form which creates a new node and adds it to the site at the url example/1, so that when a user goes to example/1 they can view all the info submitted in the form

If this does not make any sense or there is a better method let me know

Comments

prbass’s picture

If I've understood what you want to do correctly, I recommend using CCK to create a new content type, and Pathauto to generate a clean url alias - you don't need to write a module to do this.

For instance on my employer's site, I have a content type called "news" - when I add a news story, the path www.mysite.com/node/2333 automagically appears as www.mysite.com/news/news-story-title

(This of course assumes you are not using D6 - the contributed modules you need are not quite ready yet - I suggest you use Drupal 5.x until they are - or if your site is not going into production any time soon, use the dev versions and help test the ported modules)