Showing posts with label how to. Show all posts
Showing posts with label how to. Show all posts

Monday, October 12, 2009

Want to Add fields to terms ?

Are you looking for a way to add fields to terms like fields to content types via CCK Fields ?
Then here is the suitable module for you: Term Fields

Using this module you can add - single/multi row textbox, numeric, date, select box types of fields to the terms of a vocabulary.

Monday, June 2, 2008

migrating a website from wordpress to drupal

This can be done in many ways:

lets see the pros n cons of few of such methods here:-

1) Using drupal\s plug-in / module

Wordpress import

This module allows us to import a Wordpress blog into Drupal from a WordPress eXtended RSS file.

Features:

  • Wordpress posts are imported as nodes of type Story or Blog.
  • Wordpress Pages are imported as nodes of type Page
  • Only superuser(admin) can perform the import.
  • New taxonomies are automatically created for Wordpress categories and tags.
  • Comments and trackbacks are imported as Drupal comments
Known issues:
  • Blogroll are not yet supported
  • attachment are not yet supported

2) Using another drupal\s plug-in / module

wp2drupal

Features:

  • Posts, comments, categories, pages and users are migrated. wp2drupal respects unpublished and private settings so no non-public information will be revealed to unauthorized eyes after migration.
  • You can, specify node types of imported posts and pages, each imported string can be run through custom string handling function etc.
  • flexible URL redirection mechanism.

Known issues:

  • Well tested with drupal4.7. For 5.x its quiet complicated process.
  • you will need to enable set_time_limit() function to let migration process run longer than 30 seconds.
  • can't handle multi-user mega-blogs.

3) Writing few manual scripts & then using drupal plug-ins to load data

  • Setup the drupal site
  • Make the CCKs, categories & their dependencies mapped correctly.
  • Migrate wordpress users to drupal users DB with all the user fields coming to drupal profile fields using manual PHP script.
  • Generate CSVs for wordpress data (posts, pages, comments, tags, categories etc etc).
  • Now load the CSV files into drupal CCKs using the node import module.

Known issues

  • May need data cleansing.
  • Max memory/time limits needed to be updated.
  • URL aliasing/ redirection issues

Advantages:

  • Wordpress posts/pages can be loaded into user chosen node/content types.
  • Any user who have required admin rights can perform the migration
This might be useful for many people who are working on migration related projects.

Wednesday, February 13, 2008

Friday, January 11, 2008

How to set your drupal site's 403/404 errors

Drupal allows you to customize 403/404 error pages.
But how?
Use customerror module
Enable the module at admin>site building>modules, then go to admin> site configuration> error reporting:
here you can set the URLs of pages to which you want your 403/404 error pages to get redirected to.

Wednesday, December 26, 2007

How to: Add registration fields using profile module

How to add extra fields to drupal default registration form in your site?

Its very simple using profile module:
Go to Administer » Site building then choose modules and enable profile module,
save changes.
Now,
go to Administer » User management then choose profiles - here you will see a list of field types which you can add
* single-line textfield
* multi-line textfield
* checkbox
* list selection
* freeform list
* URL
* date

Add the fields which you wish the user to fill in the registration form of your site.

Lets see few examples:

1) If you wish your user to enter some realname field, then add a 'single-line textfield' & fill in the required information like title etc etc & at last click on 'Visible in user registration form' to allow this field to appear in registration form & then save it.
Here theres your 'realname' field with other drupal registration fields.

2) If you wish to add a text area of say 5x5, then add 'multi-line textfield' & follow the same procedure as above.

3) checkbox - this can be used for giving terms & conditions options