Hey there,

I've written some php pages and i'd like to show them in drupal:
these pages should be shown here where the whole "testje" story is now.
Whats the best/fasted way to do this?

thanks in advance

matx5

Comments

kmv’s picture

It depends upon how you have written your PHP code, but the fastest way would be to copy and paste the PHP into a node and then set the 'input format' to PHP.

While the above will work, in your case I think the best way would be turn the data into proper nodes by:

  • Creating a new content type with the fields you are using (4-5 text fields and a video or embedded media field by the look of it). Modules: Content Construction Kit (CCK), Embedded Media Field and/or Video.
  • Creating a template to show the node body the way you want (also looks quite straightforward in your case). Modules: Content Templates (Contemplate).
  • Creating a view which replicated your A-Z bar, actually I think there is a view in the Views Bonus Pack that does this straight out of the box - "Bonus: Summary + full view"
  • Import the data from your current tables into Drupal nodes. Module: Import Manager (to pick one example).

If you make them proper nodes then they become searchable, comment-able, accessible and usable by other modules. Lots of good things like that.

matx5’s picture

thanx for the detailed info, I'm gonna try it the best way :D

matx5