User Tools

Site Tools


cms1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cms1 [2011/06/21 18:43]
siva_epari
cms1 [2018/03/24 11:13] (current)
Line 1: Line 1:
-===Overview(Beginners)===+==Links==
  
-  ​[[#Setting up XAMPP|Setting up XAMPP]] +  ​[[cms1|Drupal, Day1]] 
-  ​[[#Install Drupal|Install ​Drupal]] +  ​[[cms2|Drupal, Day2]] 
-  ​- Bluemasters theme +  ​[[cms_faq|Frequently Asked Questions, CMS]] 
-    - [[#​Downloading Bluemasters theme|Download]] +  ​[[drupal-lms|Library Management System as Assignment]]
-    - [[#​Installing Bluemasters theme|Install]] +
-  ​- Menus +
-    - [[#Adding content|Adding content]] +
-    ​[[#​Configuring Drop down menus|Configure Drop down menus]]+
  
-===Overview(Advanced Users)===+===Content Management System(Focus On Drupal), Day1=== 
 + 
 +===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 +  - [[#Menus|Menus]]
-    ​- [[#Downloading Bluemasters theme using Drush|Download]] +
-    - [[#​Installing Bluemasters theme|Install]] +
-  - Menus+
     - [[#Adding content|Adding content]]     - [[#Adding content|Adding content]]
-    ​- [[#Configuring Drop down menus|Configure Drop down menus]]+  ​- [[#Slideshow|Slideshow]] 
 +  - [[#​Blocks|Blocks]] 
 +    - [[#Creating blocks|Creating blocks]] 
 +      - [[#Normal blocks|Normal blocks]] 
 +      - [[#Blocks with Images|Blocks with Images]] 
 +  - [[#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 & +  ​deb http://​ftp.us.debian.org/​debian testing main contrib non-free ​
  
-  ​Copy lampp-0.9.4.tar.gz to /opt & Extract ​the files such that you have /opt/lampp finally +In place of **testing** in the above line replace it with your current flavor of OS like **stable**, **unstable**,​ **lenny**, **sid**
-  ​Now switch back to terminal and type+
  
-  ​/​opt/​lampp/​lampp start   +  * Update package sources
- +
-  * 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)== +
- +
-  ​* Update package sources ​& safe upgrade your server+
  
   apt-get update   apt-get update
-  aptitude safe-upgrade 
  
 (This is safer than apt-get upgrade or apt-get dist-upgrade,​ because it safely upgrades your server and resolves dependencies) (This is safer than apt-get upgrade or apt-get dist-upgrade,​ because it safely upgrades your server and resolves dependencies)
Line 50: Line 38:
   * Install Apache2 and PHP5   * Install Apache2 and PHP5
  
-  apt-get install apache2 php5 libapache2-mod-php5+  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 70: Line 59:
   apt-get install phpmyadmin   apt-get install phpmyadmin
  
-When prompted for a password enter *hello*.+When prompted for a password enter **hello**.
  
   * Creating a MySQL DB & user for your Drupal installation   * Creating a MySQL DB & user for your Drupal installation
Line 76: Line 65:
   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 107: Line 80:
     * 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 125: Line 98:
     * Now click on **Visit your new site**     * Now click on **Visit your new site**
  
-==Downloading Bluemasters theme== +==Menus==
- +
-  * 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 +
- +
-==Downloading Bluemasters theme using Drush== +
- +
-  * Issue the following command in the d7/ directory +
-  drush dl bluemasters +
-   +
-==Installing Bluemasters theme== +
- +
-  * Click on **Appearence** in the top black menu +
-  * Click on **Enable and set default** near the bluemasters theme {{:​bluemasters.png|}} +
-  * Then close the **Appearence** window {{:​appearence-close.png|}}+
  
 ==Adding content== ==Adding content==
Line 154: Line 113:
 Similarly create pages about **Prepare your computer**, **Software carpentry** & **CMS** but ensure **Workshop** under **Parent item** for the new pages Similarly create pages about **Prepare your computer**, **Software carpentry** & **CMS** but ensure **Workshop** under **Parent item** for the new pages
  
-==Configuring Drop down menus==+==Slideshow== 
 + 
 +==Install colorbox module== 
 + 
 +  * Download http://​drupal.org/​project/​colorbox 
 +  * Extract colorbox-7.x-1.3.tar.gz under /​var/​www/​drupal-7.14/​sites/​all/​modules directory 
 +  * Download http://​www.jacklmoore.com/​colorbox/​colorbox.zip 
 +  * Create directory /​var/​www/​drupal-7.14/​sites/​all/​libraries 
 +  * Extract colorbox.zip to libraries directory 
 +  * Click "​Modules"​ from top menu, check "​Colorbox"​ & "Save configuration"​ 
 +  * Click "​Structure"​ from top menu, "​Content types" and "​Manage Display"​ for "​Article"​. 
 +  * Choose "​Colorbox"​ under "​Format"​ for "​Image"​ & Save. 
 +  * Again "​Structure",​ "​Content types" and "​Manage fields"​ for "​Article"​ 
 +  * Click "​edit"​ under "​Operations"​ for "​Image"​ 
 +  * Check "​Enable Title field" under "​Article settings"​ 
 +  * Change "​Number of values"​ under "Image field settings"​ to "​Unlimited",​ scroll ​down & "Save settings"​ 
 +  * Click "​Structure"​ from top menu, "​Content types" and "​Manage Display"​ for "​Article"​ 
 +  * Click Gear wheel at the extreme right for "​Image"​ 
 +  * Choose "​thumbnail"​ in "Node image style" and click "​Update"​  
 + 
 +==Blocks== 
 +==Creating blocks== 
 +==Normal blocks== 
 + 
 +   * Click on **Structure** in the top black menu & then click **Blocks** 
 +   * Then click **Add block** 
 +   * Configure block 
 +     * **About Workshop** in **Block description** & **Block title** 
 +     * Write a summary about workshop in **Block body** 
 +   * Then **Save block** 
 + 
 +==Blocks with Images== 
 + 
 +   * Follow the previous mentioned steps to create a block except **Block body** 
 +   * Download a image, rename it to block.jpg and copy it to d7/​sites/​default/​files 
 +   * Put the following content in **Block body** to put image 
 + 
 +   <​img src='/​d7/​sites/​default/​files/​block.jpg'​ height=86 width=249>​ 
 + 
 +   * Select **Full HTML** under **Text format** 
 +   * Then **Save block** 
 + 
 +==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==
  
-  * Click on **Structure** in the top black menu and then click **menus** +  * [[cms1|Drupal,​ Day1]] 
-  * Then click **list links** near **Main menu** +  * [[cms2|Drupal,​ Day2]] 
-  * Then click **edit** near **Workshop** +  * [[cms_faq|Frequently Asked Questions, CMS]] 
-  * Check the box **Show ​as expanded** and then **save**+  * [[drupal-lms|Library Management System ​as Assignment]]
cms1.1308681784.txt.gz · Last modified: 2018/03/24 11:13 (external edit)