This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cms1 [2011/06/22 08:05] siva_epari |
cms1 [2011/06/25 13:22] siva_epari |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===Overview(Beginners)=== | + | ==Links== |
- | - [[#Setting up XAMPP|Setting up XAMPP]] | + | *Content Management System |
- | - [[#Install Drupal|Install Drupal]] | + | * [[cms1|Content Management System(Focus On Drupal), Day1]] |
- | - [[#Bluemasters theme|Bluemasters theme]] | + | * [[cms2|Content Management System(Focus On Drupal), Day2]] |
- | - [[#Downloading Bluemasters theme|Download]] | + | * [[cms_faq|Frequently Asked Questions, CMS]] |
- | - [[#Installing Bluemasters theme|Install]] | + | |
- | - [[#Menus|Menus]] | + | ===Content Management System(Focus On Drupal), Day1=== |
- | - [[#Adding content|Adding content]] | + | |
- | - [[#Configuring Drop down menus|Configure Drop down menus]] | + | |
- | - [[#Slideshow|Slideshow]] | + | |
- | - [[#Prepare Images & Content|Prepare Images & Content]] | + | |
- | - [[#Edit page.tpl.php|Edit page.tpl.php]] | + | |
- | - [[#Blocks|Blocks]] | + | |
- | - [[#Creating blocks|Creating blocks]] | + | |
- | - [[#Normal blocks|Normal blocks]] | + | |
- | - [[#Blocks with Images|Blocks with Images]] | + | |
- | - [[#Home page|Home page]] | + | |
- | - [[#Other pages|Other pages]] | + | |
- | ===Overview(Advanced Users)=== | + | ===Overview=== |
- [[#Setting up LAMP (Linux, Apache, MySQL & PHP)|Setting up LAMP (Linux, Apache, MySQL & PHP)]] | - [[#Setting up LAMP (Linux, Apache, MySQL & PHP)|Setting up LAMP (Linux, Apache, MySQL & PHP)]] | ||
- | - [[#Installing Drush & Configuration|Installing Drush & Configuration]] | ||
- [[#Install Drupal|Install Drupal]] | - [[#Install Drupal|Install Drupal]] | ||
- [[#Bluemasters theme|Bluemasters theme]] | - [[#Bluemasters theme|Bluemasters theme]] | ||
Line 39: | Line 27: | ||
- [[#Home page|Home page]] | - [[#Home page|Home page]] | ||
- [[#Other pages|Other pages]] | - [[#Other pages|Other pages]] | ||
+ | - [[#Contact form|Contact form]] | ||
+ | - [[#Search|Search]] | ||
- | ==Setting up XAMPP== | + | ==Setting up LAMP (Linux, Apache, MySQL & PHP)== |
- | * Download http://sourceforge.net/projects/xampp/files/LAMPP/0.9.4/lampp-0.9.4.tar.gz/download | + | * If you have Debian OS installed in your system, add the following line to /etc/apt/sources.list and put **#** before all existing lines in the file |
- | * Open a terminal and type | + | |
- | + | ||
- | nautilus /opt & | + | |
- | + | ||
- | * Copy lampp-0.9.4.tar.gz to /opt & Extract the files such that you have /opt/lampp finally | + | |
- | * Now switch back to terminal and type | + | |
- | + | ||
- | /opt/lampp/lampp start | + | |
- | + | ||
- | * Go and check http://localhost in your browser to see xampp panel. | + | |
- | * Create a database | + | |
- | * Goto http://localhost/phpmyadmin and give **username** as **root** and password **hello** if LAMP or blank if XAMPP | + | |
- | * Enter **d7** at **Create new Database** and click **create** | + | |
- | + | ||
- | ==Setting up LAMP (Linux, Apache, MySQL & PHP)== | + | |
- | * Add the following line to /etc/apt/sources.list and put **#** before all existing lines in the file | + | deb http://ftp.us.debian.org/debian testing main contrib non-free |
- | deb http://ftp.us.debian.org/debian testing main contrib non-free | + | In place of **testing** in the above line replace it with your current flavor of OS like **stable**, **unstable**, **lenny**, **sid** |
- | * Update package sources & safe upgrade your server | + | * Update package sources |
apt-get update | apt-get update | ||
Line 72: | Line 47: | ||
apt-get install apache2 php5 libapache2-mod-php5 php5-gd | apt-get install apache2 php5 libapache2-mod-php5 php5-gd | ||
+ | chmod -R 777 /var/www | ||
Check if apache is working | Check if apache is working | ||
Line 97: | Line 73: | ||
mysqladmin -u root -p create d7 | mysqladmin -u root -p create d7 | ||
- | Enter **hello** when you are prompted for password | + | Enter **hello** when you are prompted for password. If you get a "Database exists" error, please issue "mysqladmin -u root -p drop d7" to delete the existing database and then issue the create command. |
* Configuring Apache for Clean URLs | * Configuring Apache for Clean URLs | ||
a2enmod rewrite | a2enmod rewrite | ||
- | /etc/init.d/apache restart | + | /etc/init.d/apache2 restart |
chmod -R 777 /var/www | chmod -R 777 /var/www | ||
- | | ||
- | ==Installing Drush & Configuration== | ||
- | |||
- | * Enter the below code in a terminal | ||
- | |||
- | su | ||
- | apt-get install php5-cli | ||
- | cd /usr/share | ||
- | wget http://ftp.drupal.org/files/projects/drush-7.x-4.4.tar.gz | ||
- | tar xvzf drush-7.x-4.4.tar.gz | ||
- | chmod a+x /usr/share/drush/drush | ||
- | ln -s /usr/share/drush/drush /usr/bin/drush | ||
- | |||
- | * To verify drush, issue the following command and see if you get a help about commands | ||
- | |||
- | drush | ||
| | ||
==Install Drupal== | ==Install Drupal== | ||
Line 128: | Line 88: | ||
* Rename the drupal-7.2 to d7 | * Rename the drupal-7.2 to d7 | ||
* Goto d7/sites/default, create a folder called files so that you have d7/sites/default/files | * Goto d7/sites/default, create a folder called files so that you have d7/sites/default/files | ||
- | * Copy default.settings.php as settings.php so that you have d7/sites/default/files/settings.php | + | * Copy default.settings.php as settings.php so that you have d7/sites/default/settings.php |
* Give 777 permissions to file(apply permissions to enclosed files) & settings.php | * Give 777 permissions to file(apply permissions to enclosed files) & settings.php | ||
* Install drupal | * Install drupal | ||
Line 152: | Line 112: | ||
* Download http://ftp.drupal.org/files/projects/bluemasters-7.x-1.1.tar.gz into d7/sites/all/themes | * Download http://ftp.drupal.org/files/projects/bluemasters-7.x-1.1.tar.gz into d7/sites/all/themes | ||
* extract bluemasters-7.x-1.1.tar.gz so that you have d7/sites/all/themes/bluemasters | * extract bluemasters-7.x-1.1.tar.gz so that you have d7/sites/all/themes/bluemasters | ||
- | |||
- | ==Downloading Bluemasters theme using Drush== | ||
- | |||
- | * Issue the following command in the d7/ directory | ||
- | drush dl bluemasters | ||
| | ||
==Installing Bluemasters theme== | ==Installing Bluemasters theme== | ||
Line 193: | Line 148: | ||
* Place the images under d7/sites/default/files like d7/sites/default/files/slideshow-image-1.jpg | * Place the images under d7/sites/default/files like d7/sites/default/files/slideshow-image-1.jpg | ||
- | ==Edit page.tpl.php== | + | ==Edit page--front.tpl.php== |
- | * Open d7/sites/all/themes/bluemasters/page.tpl.php in gedit text editor | + | * Open d7/sites/all/themes/bluemasters/page--front.tpl.php in gedit text editor |
* Edit the file as following | * Edit the file as following | ||
Line 275: | Line 230: | ||
* Create another block and place it under **Sidebar first** region to show it on pages other than home | * Create another block and place it under **Sidebar first** region to show it on pages other than home | ||
+ | ==Contact form== | ||
+ | |||
+ | * Goto **Modules** in top black menu and search for **contact** | ||
+ | * Check the box in the **Enabled** column near **contact** | ||
+ | * Scroll down & **Save configuration** | ||
+ | * Goto **Structure** > **Menus** in top black menu | ||
+ | * Click **List links** near **Main menu** | ||
+ | * Click **Add link** | ||
+ | * Configure the menu item | ||
+ | * **Contact us** as **Menu link title** | ||
+ | * **contact** as **Path** and **Save** | ||
+ | |||
+ | ==Search== | ||
+ | |||
+ | * Goto **Configuration** in top black menu | ||
+ | * Click **Search settings** under **Search & Metadata** | ||
+ | * If **Indexing status** is **0%** click on **cron maintenance task** link at the top | ||
+ | * Then click on **Run cron** link appearing in the middle of the page | ||
+ | * Then goback to **Indexing status** and ensure **100%** | ||
+ | |||
+ | ==Links== | ||
+ | |||
+ | *Content Management System | ||
+ | * [[cms1|Content Management System(Focus On Drupal), Day1]] | ||
+ | * [[cms2|Content Management System(Focus On Drupal), Day2]] | ||
+ | * [[cms_faq|Frequently Asked Questions, CMS]] |