By Piya on
Hello friends...
We have teaser module in drupal 5.x...I want to convert it in the 6.x format..
I have written converted code for it..The form display is there but after submitting,it is not inserting the result into database...
Can anybody tell me how can I convert that module in drupal 6.x format???
Thanks in Advance...
Comments
Are you using the Coder
Are you using the Coder module? Also see the new Deadwood module (I haven't got it to work successfully yet myself, but only tried two or so weeks ago).
Also it would be easier for others to assist you if you would please give a link to the Teaser module you are referring to (there are a variety of teaser-related modules).
-- David
absolutecross.com
The link for teaser to
The link for teaser to download is....
http://webscripts.softpedia.com/script/Modules/Drupal-Modules/Teaser-blo...
This is module compatible with drupal5.x....
Ok. You didn't mention
Ok. You didn't mention whether you are using Coder module to help you upgrade the module. I loaded it into Coder in "upgrade to Drupal 6 mode" just to see and there are quite a lot of lines that need to be modified for Drupal 6 support... many/most though appear to have either direct instructions offered on what to change, or links to the correct info to allow you to make the changes. If you do not know yet how to use Coder module, see this screencast: http://www.lullabot.com/videocast/porting-drupal-modules
Edit: you might consider Nodequeue module instead, which works in Drupal 6 and is highly supported (developed by the same author of Views and Panels modules). It works "best" when paired alongside Views module, though if you don't use Views on your site, you can still add a PHP snippet (see the readme) into a block to display it. Set up a queue with a limit of 1 node, use teaser settings in Views (or the $teasers = true option if not using Views) and it will closely match the results of Teaser Block module. You can also locate and add the node you want into Nodequeue much easier than you could with Teaser Block.
-- David
absolutecross.com