Pages

Thursday, January 31, 2013

How to Add CKEditor in Drupal

Following Steps need to follow.

First Download 3 file.

  1. Download CKEditor module(ex.ckeditor 7.x-1.2). To download click here.
  2. Download CKEditor Software(ex.CKEditor 3.6.6) .To download click here.
  3.  Download imce Software(ex.imce-7.x-1.4.tar.gz) .To download click here 
  4. Unzip all the zip files which are downloaded. After that copy the CKEditor software folder. 
  5. Inside the CKEDitor module folder there is folder name CKEditor, paste the software folder in that folder.
  6. Now copy the CKEditor module folder and IMCE folder into the drupal project folder in sites/all/module.

How to remove Read more and display Content on front page

Just goto Configuration -> Site Information there we will find an option like "Default front page". There you can give your node id of the page what you are created.


For Ex.


I have created page which i want to make as front page like "Wel Come". When we are created the page it will take a node id a default value like "5".


So we need to add this value in Default Front Page as "node/5"

Tuesday, January 22, 2013

How to create a plugin in wordpress?

For creating a new plugin in wordpress need to follow below steps:

1. Create a php file in plugins folder of your wordpress project.

For example : mytestplugin.php

2. Add the below code in that:
 <?php
/*
Plugin Name: My Test Plugin
Plugin URI: http://google.com
Description: This is a my first plugin
Version: 1.0
Author: Kiran
Author URI: http://gmail.com/
*/
?>
Plugin Name: name of the plugin which display at admin side of wordpress in plugins menu.
Plugin URL: describes the link of your plugin site.
Description: description of the plugin.
Version: version of the plugin
Author: Name of the author who creates the plugin
Authod URL: url of the author's site.