By 9911782 on
Hi There
Im a Newbie in this Drupal. I just install Drupal and did the configurations.Its up now.But my problem is that I have a Database-driven website flat files(MySQL Quesries within them) that i want to convert to Drupal CMS.
I developed this website with XAMPP(PHP/MySQL) platforms using Dreamweaver as my development Tool. How do I take all my pages and put then is Drupal? Can somebody explain to me on how to do this? Any tutorial of this kind? Please help. I find this Drupal excting...less work for me as a developer.
Please help.
9911782
Comments
Start Here
Hi,
You might want to start here - http://drupal.org/handbook/migrating - and look here - http://drupal.org/handbook/modules/node_import .
Eric
__________
Eric Aitala - f1m@f1m.com
The Formula 1 Modeling Website
www.f1m.com
__________
Eric Aitala - ema13@psu.edu
Penn State
224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485
Start Here
Im still confused here...it does not explain clearly to me...
just need to convert all my dynamic webpages to Drupal. Process mentioned here are still confusing me
thanks
What you will probably need
What you will probably need to do is look at the examples of moving content from the various CMS's to Drupal and see how you would do it with the information in your DB.
Things like titles and body text is pretty obvious, but knowing how to handle nid's (node IDs) and vid's (which can be version ID in the node and node_revisions table but are IDs in the vocabulary and term_data table) .
You'll also need to know how to deal with the various rows in the sequences table as Drupal does not use auto-incrementing primary keys.
Eric
__________
Eric Aitala - f1m@f1m.com
The Formula 1 Modeling Website
www.f1m.com
__________
Eric Aitala - ema13@psu.edu
Penn State
224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485
Rephrase question: convert web-based application pages to Drupal
Hi
Im a Newbie on developing the websites in CMS. I've just register now on Mambo. I've used PHP5/MySQL to develop my Web-based Application(database-driven application). In this application...we are able to Add/Edit/Delete the records in the Database...these are coded in Back-end using PHP & Javascript. I want to be able to do the same thing even in CMS. How do I do that in Drupal, so far, i am still not clear as to how to fit all this in Drupal.
Can somebody tell me ps?
Thank You
9911782
I was there too!
Ah! I remember those days when I had to convert my site to drupal. It was a nightmare. Especially due to lack of resources available on the matter. But you will be glad to know that it has paid off. Drupal is pure elegance. I'll now explain what I had to do with little code. Don't panic, the php below is pretty simple.
I had two choices i) completely drupify my old site using mysql only and no drupal application framework or ii) completely drupify my old site using drupal application's framework . I chose the second option since it made my life a lot easier, why you ask? Well, because there is a lot of drupal coding done for things that we would have to redo with the option i (its like reinventing the wheel).
I had a website with few content types like books,articles,forums,etc. The first thing I did was install drupal. I downloaded a module called cck (content construction/creation? kit). This module allowed me to develop content types with the field types of my choice e.g. a new content type I created was articles. I created a couple of fields with cck like first name author,last name author,timeline,etc.
Then I retrieved old values from my previous manually created database using mysql/php to drupal database using php/drupal api.
I opened a node from drupal and wrote this php code.
The two most important functions in this code are node_submit and node_save. You can view how they work at the drupal api website.
http://api.drupal.org/api/function/node_save/6,
http://api.drupal.org/api/function/node_submit
Ali Hammad Raza
WordsValley
Thank You Ali
Thanks a Million Ali
you gave me a vivid idea about Drupal...Do I have to download these noded to my website now? and how do you create those aggregator modules...I mean where in Drupal website? I have a website on my PC already.
my pleasure
First things first, Create a new node be it article , story or your own content type(for which you need cck module downloaded & installed first), choose php filter, copy and paste the code above in the body, give any title in the title field.
Now, make sure that you alter the code according to your own field names and content type. I didn't understand what you meant by "creating an aggregrator module". Could you please clarify further?
Ali Hammad Raza
WordsValley
interested to know more
Hi Ali,
you wrote "I opened a node from drupal and wrote this php code."
i am trying to convert my asp.net / mysql site into drupal.
I am unfamiliar with drupal and know a little about php.
What do you mean by open a node from drupal and wrote the php code?
Please advise.
thanks.