Click to See Complete Forum and Search --> : Help for drupal


bhavik_thegame
10-22-2008, 01:00 AM
Hii All,
I am working on Drupal right now, well, the problem I am facing is that I am not being able to track the flow bcoz I am not familiar with the urls,


for. e.g
in the <form> tag, the action attribute says "action=user/manage/books/add"

What does this mean? On which page does the flow go on pressing submit?
How can I see on which .php page does the flow goes...

I will be glad with some great suggestions...!!!:)

NogDog
10-22-2008, 01:15 AM
Just a guess, I suspect there may be some Apache mod_rewrite stuff involved, in which case it may be going to some general control file which then receives the directory/file-type names in the URL as $_GET values. I'd start by looking in the base directory of your Drupal installation for a .htaccess file and see if any such re-writing is going on. Or, of course, you could check the Drupal API documentation (if there is any) or check their knowledge-base/forums.

bhavik_thegame
10-22-2008, 02:27 AM
Can I manually add a row to the database?

I am integrating a project in drupal.
By performing an "Add" operation I know which tables are being updated in the database.
But I am confused about the nid(node id I guess) and the vid(I dont know whats this), I dont know from where these 2 things are inserted in the table.

And I dont think its the right way to insert data in the database tables this way...
Or is it?

chazzy
10-22-2008, 05:41 AM
nid = node_id
vid = version_id

each update to a node actually results in an insert, not an update, occurring.

you can add a row to the database, but it needs to have values in several tables for a node entry. if you look at your table structure, it'll become clear when you look at all tables w/ a nid and a vid column.

bhavik_thegame
10-22-2008, 05:56 AM
Hey, Thannx..


I have add a row in my database.
There are 2 tables(node,node_revisions) which contains my details details along with nid & vid.

But the question is that here is the nid, vid auto incremented?
I mean can I directly enter it in database?

I have also got nearly 6-7 tables where I found the same nid & vid.
And again are these 6-7 tables have nid/vids auto incremented?