Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

Drupal(Omega 4 Theme) Guide.

Prepared & compiled by Elvent Taliban.


OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.

CONTENT

PAGE

CHAPTER 1 : Installing Drush 7.x-dev

CHAPTER 2 : Installation of Drupal 7.31

CHAPTER 3 : Increasing the Upload Limit of Drupal 7.31

CHAPTER 4 : Installing Omega Theme & Subtheme using Drush 7.x-dev

CHAPTER 5 : Installing GEM & Compiling SASS

CHAPTER 6 : Start Designing on styles.scss file & Creating Custom Layout


6.1
Removing Regions from the Template
6.2
Adding Regions to the Template
6.3
Creating custom SASS Compiling for the Custom Layout

11
13
14
15

CHAPTER 7 : Using Panels & Panels Everywhere

17

CHAPTER 8 : List of Software

19

CHAPTER 9 : List of Modules

19

CHAPTER 10 : Errors & Solutions or F.A.Q's

20

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 1: Installing Drush 7.x-dev on Linux Mint 17 MATE
Prerequisite:
1.
cuRL
2.
php5-cli
3.
composer
Installing cuRL
# sudo add-apt-repository ppa:costamanagianfranco/ettercap-stable-backports
# sudo apt-get update
# sudo apt-get install curl
Installing php5-cli
# sudo apt-get install php5-cli
Installing composer Globally
# curl -sS https://getcomposer.org/installer | php
# sudo mv composer.phar /usr/local/bin/composer
Note :
composer.json can be found in drush-master folder that has been downloaded from
https://github.com/drush-ops/drush
Copy and paste composer.json inside the directory of composer & in the directory of
/home/user/.composer/
replace the original composer.json.
User = your linux pc username. Eg : myname
Installing apache2 php5 mysql-server php5-mysql php5-gd
# sudo apt-get install apache2 php5 mysql-server php5-mysql php5-gd
# sudo apt-get install phpmyadmin
Command for Mysql & Apache2 Start / Stop / Status / Restart
# sudo /etc/init.d/apache2 start
# sudo /etc/init.d/mysql start

Proceeds to Drush 7.x-dev Installation


Description :
Installation of Drush 7 can be done by using 3 methods.
In this guide, we will only discuss 2 type of Drush 7 installation method.

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
Method 1: Globally Install Drush 7 (Not working)
# composer global require drush/drush:dev-master
if drush can't find autoloads class, please enter command below on terminal:
# composer self-update
# $HOME/.composer/composer.json
Method 2: Manual Installation (Working)
Step 1 : Download drush-master file from git-hub. https://github.com/drush-ops/drush
Step 2 : Decompress / extract the downloaded zip file.
Step 3 : Rename the extracted folder into drush.
Step 4 : Move the drush folder into directory /usr/local/bin.
On terminal, before you do the mv command, make sure your terminal is in the directory of
the drush folder.
# sudo mv drush /usr/local/bin
Step 5 : Make drush executable
# sudo chmod u+x /path/to/drush/drush
in this case :
# sudo chmod u+x /usr/local/bin/drush/drush
Step 6 : Create a symbolic link to the drush executable in a directory already in your PATH.
Option 1 :
# ln -s /path/to/drush/drush /usr/bin/drush
in this case :
# ln -s /usr/local/bin/drush/drush /usr/bin/drush
Option 2 :
# export PATH=$PATH:/path/to/drush:/usr/local/bin
Option 3 :
Add aliases (This is if you want to use more than one version of drush)
# alias drush-master=/path/to/drush/drush
Important :
After finish with option 2 & 3 above, please log out and log in.
Step 7 : We need to make sure that drush is found by the system.
# which drush
if the system respond telling drush is found in /usr/local/bin/drush , then we had
successfully setting up the directory for drush.

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
Step 8 : Install composer on the root directory of drush.
First we need to make sure that composer.json file already copied and replace the original
composer.json in the /home/user/.composer directory.
Composer.json can be found in the downloaded drush-master folder from git-hub.
Make sure your directory is in the root directory of drush.
# cd /usr/local/bin/drush
# composer install
Finishing Steps :
If you encounter the error : Can't find autoloads.php, please try to do the following...
export PATH=$HOME/.composer/vendor/bin:$PATH
That's it... Good Luck.
Reference : https://git-hub.com/drush-ops/drush

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 2: Installation of Drupal 7.31 (Latest version as of October 3rd, 2014)
Step 1 :
Download Drupal 7.31 from https://www.drupal.org/project/drupal
Step 2 :
Extract the downloaded .tar.gz
Step 3 :
Rename the file into any name you want. Eg. mywebsites
Step 4 :
move the folder into directory of /var/www/. Make sure terminal is in the directory of the folder.
# sudo mv mywebsites /var/www/
Step 5 :
Change directory into the root of your website.
# cd /var/www/mywebsites
Step 6 :
# cp sites/default/default.settings.php sites/default/settings.php
Step 7 :
Change permission to the file and folder.
# sudo chmod a+w sites/default/settings.php
# sudo chmod a+w sites/default
Step 8 :
Create database.
# msqladmin -u root -p create databasename
enter your database password from which you enter during installation of mysql and phpmyadmin.
Step 9 :
Open Web Browser (Firefox) (Do this only once; to create database login other than the root
username)
Go to URL : localhost/phpmyadmin
An error might occur, which prevent you from entering the localhost/phpmyadmin server not
found
Solution (please install any text editor gedit or leafpad / apt-get install gedit):
Error : AH00558 Warning
# sudo gedit /etc/apache2/apache2.conf
On last row, put :
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
ServerName localhost
alias /phpmyadmin /usr/share/phpmyadmin
5

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
Username
Password

: root
: password entered during installation of phpmyadmin and mysql

Go to Database tab, and select(tick) your database @ step 8.


Click > Check Privileges > Add User
Username
Password
Host type(local)

: whatever
: whatever
: localhost

Database for User


Tick the Grant all privileges on database database name
Global Privileges (Check the following)
DATA
STRUCTURE
select

create

insert

alter

update

index

delete

drop

ADMINISTRATION
lock table

create temporary table

Click GO
Step 10 :
Go to your Web Browser (Firefox)
URL : localhost/yourwebsitename
yourwebsitename = the name of folder you put inside /var/www/
Just follow the installation instruction.
Note :
an error might occur where you can't enter the drupal 7.31 installation page.
Solution :
# sudo gedit /etc/apache2/sites-available/000-default.conf
Find (CTRL + F) the line below:
DocumentRoot /var/www/html
Edit the line so that it become
DocumentRoot /var/www
=> Save & Exit, then Restart mysql & apache2
6

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 3: Increasing the Upload Limit of Drupal 7.31 (Default 2MB)
# sudo gedit /etc/php5/apache2/php.ini
CTRL +F (Find)
upload_max_filesize = 2M (change this to value that you want or better 12M)
post_max_size = Value must be greater or 2x value of upload_max_filesize (24M)
memory_limit = Value must be greater than post_max_size (36M)
CHAPTER 4 : Installing Omega Theme & Subtheme using Drush 7.x-dev
Prerequisites :
1
Omega 4 Themes
2
RVM (Ruby Version Manager)
3
Drush 7.x-dev (Already covered on the beginning of this e-book)
Install RVM
# sudo apt-get install build-essential
# sudo apt-get install zlib1g-dev libreadline-dev libssl-dev libxml2-dev
# bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvminstaller)
# [[ -s $HOME/.rvm/scripts/rvm ]] && . $HOME/.rvm/scripts/rvm
# source ~/.bashrc
# \curl -sSL https://get.rvm.io | bash -s stable ruby
# source /home/xneoragex/.rvm/scripts/rvm
#rvm install 2.1.2
If error rvm is not a function, on terminal empty spaces, Right Click > Show Menu Bar
Edit > Profile Preferences > Title and Command > Tick Run Command as Login Shell
# rvm --default use 2.1.2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Download the omega 4.0 theme from https://www.drupal.org/project/omega
Extract the zip file.
Move the zip file into the directory :
/var/www/yourwebsitename/sites/all/themes
go to URL : localhost/yourwebsitename
Appearance > Themes > Enable Omega 4 Theme
7

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
Omega Subtheme Setup
Make sure Terminal directory is on your website folder roots.
# cd /var/www/yourwebsitename
# drush omega-wizard
- Follow the instruction
- Name of the Subtheme : Any Name You Want (eg. Level_Up_Omega)
- Base Theme : Omega (not Ohm)
- Starter Kit : [choose the available starterkit]
- Where to place subtheme : [press enter] by default it will place it in all/themes dir
- Choose a site : [All]
- Keep starterkit Readme : N
- Enable new theme : Y
- Make new theme default : Y
- Download Binaries & Success.
Note :
When you run the code :
# drush omega-guard
and it says /home/user/.drush/default/ present but not writable, enter the following command on
terminal.
# sudo chown -R $USER ~/.drush

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 5: Installing GEM & Compiling SASS
This chapter simply will guide through the process of installing Gems and compiling SASS inside
the folder of our subtheme.
1.
2.
3.
4.
5.
6.

Open Terminal
Change directory into your subtheme.
# cd /var/www/yourwebsitesname/sites/all/themes/yoursubtheme
# drush omega-guard, [1] subtheme
For first time, it will give ERROR because we don't have the required GEM
installed. First we need bundler installed.
# sudo apt-get install bundler
To install missing Gem, just run the command below;
# bundle install
After the download and installation progress completed, you should be able to run;
# drush omega-guard

Note :
If by some bad luck you receive error's below after using the command
# bundle install
Error description :
SSL Error, Man-in-the-middle-attack
Solution :
# rvm pkg install openssl
# rvm reinstall all --force
If the problem/error still not resolved;
# rvm install 2.1.2 \ --with-openssl-dir=$HOME/.rvm/usr
(Version 2.1.3 is latest as of October 3rd, 2014)
or
# brew tap raggi/ale brew install openssl-osx-ca

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
Sorry this happens a lot. If you encounter another error, failed compilation in 3 files when running
the command
# drush omega-guard
Solution :
You need to edit some file.
Go to /var/www/yourwebsitesname/sites/all/themes/yoursubtheme/sass directory
1.

Open youromegasubtheme.style.scss
//import external libraries
@import compass;
@import breakpoint;
@import singularitygs;
@import toolkit-no-css;
Edit this line into => @import toolkit;

2.

Open youromegasubtheme.normalize.scss
//use 'border-box' for the box model.
@import toolkit/border-box;
Edit this line into => @import toolkit/kickstart;

3.

In the directory of ../themes/yoursubtheme/


There is a file name config.rb
Right click on the folder empty space and choose open in Terminal.
# sudo gedit config.rb

# Add the 'sass' directory itself as an import path to ease imports.


add_import_path 'sass' ----------->This is the last line on the config.rb file.
#Require any additional compass plugins installed on your system.
require 'compass-normalize'
require 'rgbapng'
require 'toolkit'
require 'susy'
require 'sass-globbing'
require 'breakpoint'
require 'singularitygs'
Reference : https://drupal.org/node/2323235

10

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 6: Start Designing on styles.scss file & Creating Custom Layout
You need to remember, each and every time you wish to work on your website design that involves
SASS file, please run
# drush omega-guard
so that, if an error happens, it will tell you and also helps you refresh browser each time you make
changes and press SAVE.
If your don't want to create or build custom layout, you can straight away work with the current
SASS file.
Creating Custom Layout
On the directory inside the folder of yoursubtheme, /themes/yoursubtheme
1.

Create a new folder call layouts

2.

Inside the folder layouts, create another folder name nameofyourcustomlayout


in this case I use sidebar as my custom layout name.

3.

Inside the sidebar folder, create two(2) files.


a) sidebar-layout.tpl.php
b) sidebar.layout.inc

4.

Inside sidebar.layout.inc, put the following element.


name = sidebar
description = A single sidebar custom layout
preview = preview.png
template = sidebar-layout => This name must same with the .tpl.php file created @ step 3
; Regions => For this element, you can copy from yoursubtheme.info file.
regions[branding] = Branding
regions[header] = Header
regions[navigation] = Navigation
regions[highlighted] = Highlighted
regions[help] = Help
regions[content] = Content
regions[sidebar_first] = First Sidebar
regions[sidebar_second] = Second Sidebar
regions[footer] = Footer

5.

Inside sidebar-layout.tpl.php, put the element copied from


omega base theme folder. Directory is as follow;
../sites/all/themes/omega/omega/templates/system/page.tpl.php
After the content of page.tpl.php pasted inside sidebar-layout.tpl.php,
11

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
we can delete the lines
<?php
/**
* @file
* Default theme implementation to display a single Drupal page.
*
* Available variables:
*
* General utility variables:
* - $base_path: The base URL path of the Drupal installation. At the very
* least, this will always default to /.
* - $directory: The directory the template is located in, e.g. modules/system
* or themes/bartik.
* - $is_front: TRUE if the current page is the front page.
* - $logged_in: TRUE if the user is registered and signed in.
* - $is_admin: TRUE if the user has permission to access administration pages.
*
* Site identity:
* - $front_page: The URL of the front page. Use this instead of $base_path,
* when linking to the front page. This includes the language domain or
* prefix.
* - $logo: The path to the logo image, as defined in theme configuration.
* - $site_name: The name of the site, empty when display has been disabled
* in theme settings.
* - $site_slogan: The slogan of the site, empty when display has been disabled
* in theme settings.
*
* Navigation:
* - $main_menu (array): An array containing the Main menu links for the
* site, if they have been configured.
* - $secondary_menu (array): An array containing the Secondary menu links for
* the site, if they have been configured.
* - $secondary_menu_heading: The title of the menu used by the secondary links.
* - $breadcrumb: The breadcrumb trail for the current page.
*
* Page content (in order of occurrence in the default page.tpl.php):
* - $title_prefix (array): An array containing additional output populated by
* modules, intended to be displayed in front of the main title tag that
* appears in the template.
* - $title: The page title, for use in the actual HTML content.
* - $title_suffix (array): An array containing additional output populated by
* modules, intended to be displayed after the main title tag that appears in
* the template.
* - $messages: HTML for status and error messages. Should be displayed
* prominently.
* - $tabs (array): Tabs linking to any sub-pages beneath the current page
* (e.g., the view and edit tabs when displaying a node).
12

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
* - $action_links (array): Actions local to the page, such as 'Add menu' on the
* menu administration interface.
* - $feed_icons: A string of all feed icons for the current page.
* - $node: The node object, if there is an automatically-loaded node
* associated with the page, and the node ID is the second argument
* in the page's path (e.g. node/12345 and node/12345/revisions, but not
* comment/reply/12345).
*
* Regions:
* - $page['branding']: Items for the branding region.
* - $page['header']: Items for the header region.
* - $page['navigation']: Items for the navigation region.
* - $page['help']: Dynamic help text, mostly for admin pages.
* - $page['highlighted']: Items for the highlighted content region.
* - $page['content']: The main content of the current page.
* - $page['sidebar_first']: Items for the first sidebar.
* - $page['sidebar_second']: Items for the second sidebar.
* - $page['footer']: Items for the footer region.
*
* @see template_preprocess()
* @see template_preprocess_page()
* @see template_process()
* @see omega_preprocess_page()
*/
?>
Note :
After you saved the changes made into sidebar.layout.inc and sidebar-layout.tpl.php, you can go
to your website, clear cache then go to Appearance > Theme Setting > Layouts > Enable Layouts
Extension and choose your custom layout there.
6.1

Removing Regions from the Template

You can choose which region to remove. For example, if you want to remove the second sidebar,
go to
the .inc file you created, in this case sidebar.layout.inc,
delete the corresponding line :
regions[sidebar_second] = Second Sidebar
You also need to delete the corresponding line from .tpl.php that you've created, in this case
sidebar-layout.tpl.php.
Delete the corresponding line :
<?php print render($page['sidebar_second']); ?>

13

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
6.2

Adding Regions to the Template

The interesting things about Drupal is you can freely add or remove regions from the template. The
instructions below will guide you to add a region in your template.
Note : This will require you to make a custom template as in section 6.1.
Assuming you already done creating custom layout,
Inside the sidebar.layout.inc file, you need to define a region. Just add the following lines under
; Regions
regions[two_words] = Whatever
regions[oneword] = Whatever
Next, inside sidebar-layout.tpl.php, you need to add the following code into the .tpl.php file.
Let say you want the region to show up on Footer section, then put the code there.
<?php if ($page['two_words']): ?>
<div class="two_words">
<?php print render($page['two_words']); ?>
</div>
<?php endif; ?>
Next, for this custom region, you also need to define it in yoursubtheme.info file which can be
found inside /themes/yoursubthemes/
Just add the custom region under
; Regions Sidebar Layout ===> You can put it anywhere. I suggest on the last line of the .info file.
regions[two_words] = Whatever
regions[oneword] = Whatever
To see the changes, go to URL
localhost/yourwebsitename
Configuration > Performance > Clear Cache
Go to Appearance > Subtheme Settings > Development Tab > Select Demo Regions > Enable the
newly added region.

14

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
6.3

Creating custom SASS Compiling for the Custom Layout (Portable Layout)

This section will guide you to create a SASS file for the custom layouts that you've already created.
The reason is simple, you need these SASS file so that each changes only affect the corresponding
layout.
First, go to the directory (../yoursubtheme/sass/)
1.
Create a folder name layouts.
2.
Create another folder name sidebar in side the folder layouts.
Note : the name must be the same as your layout folder that you've created @ 6.1.
in this case my layout folder name is sidebar.
3.
Inside the sidebar folder, create 3 sass files with the extension .scss.
a) sidebar.layout.scss
b) sidebar.layout.no-query.scss
c) whatever-sidebar.layout.scss
What should you put into these 3 SASS files???
a) sidebar.layout.scss
@import "compass";
@import "breakpoint";
@import "singularitygs";
// Globbing from within sub-folders only works with relative paths.
@import "../../variables/**/*";
b) sidebar.layout.no-query.scss
$breakpoint-no-queries: true;
$breakpoint-no-query-fallbacks: true;
// Re-render everything from styles.scss but without media queries.
@import "sidebar.layout"; ===> this one must be the name of the main style.scss in (a).
Note :
For (a) & (b), you need to define stylesheets path inside the sidebar.layout.inc.
On the last line, add the following :
; Stylesheets
stylesheets[all][] = css/layouts/sidebar/sidebar.layout.css
stylesheets[all][] = css/layouts/sidebar/sidebar.layout.no-query.css

15

->(a)
->(b)

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
c) whatever-sidebar.layout.scss
Nothing specific. You can add any style, font style and etc.
You just need to define the stylesheets inside yoursubtheme.info file
On the last line, add the following
; Stylesheets for Sidebar Layout
layout[sidebar][stylesheets][all][] = css/layouts/sidebar/whatever-sidebar.layout.css
If you have more custom layout, the procedure is just the same. Have fun remove and add custom
region to your layout. Also, have fun creating layout specific SASS file.
Possible Error in this Section :
File to import not found. _color.scss This shown when the omega-guard tries to compile SASS file.
Solution :
Go to yoursubtheme directory (../themes/yoursubtheme/)
1
Open in Terminal
2
sudo gedit Gemfile
3
on the line,
gem 'sass-globbing' add , '1.1.0' so it becomes,
gem 'sass-globbing', '1.1.0'
4
Save & Exit.
5
# bundle install

16

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 7: Using Panels & Panels Everywhere (Custom Layout on Specific Page)
This section will guide you to use panels and panels everywhere module to set up a custom layout
for specific page. For example, if you want to make your front page to use different layout than the
other pages, you can do so by using these modules.
Prerequisites
Before you proceeds, you will need to download and enable the following modules.
# drush dl panels
# drush dl panels_everywhere
Please disable the following modules if you have them.
1. Context Omega
2. Context Layout
3. Context UI
Go to Appearance > Settings > yoursubtheme
Under Layout Tabs, Disable Layout Extension
Next,
Go to Structure > Panels > Settings > Everywhere
Check Enable Panels Everywhere
Go to Structure > Panels > Dashboard Tab > Manage Pages > Default Site Templates > Edit > Add
New Variant
Title
Variant Type
Optional feature

: Anything (Frontpage)
: Panel
: Selection Rule Click

Create Variant

Possible Error in this section


Undefine index : Icon in panels_print_layout
Solution :
Go to your respective layout.inc file and under description line, add
description = A single sidebar layout
preview = preview.png
template = templatename
Choose Layout : Omega Page Layout
Then pick the custom layout that you want to use on the front page.

17

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
Configure Section
On the dropdown menu, Select <Front page> then click ADD button
Do not tick the Reverse (NOT)
Select, All criteria must pass
On the Category Dropdown Menu, Select <Omega page layout>
then, choose the layout you wish to use on front page. Click on Continue
* Disable Drupal Blocks / Regions Click on Continue
On the next page (Substitution), you can add blocks to the region by clicking on the radio button.
Of the corresponding regions.
After you done with the block addition,
click on Create Variant & Make sure to click on Save & Update button.
You can change the variant setting by going to
Structure > Panels > Manage Pages > Default Site Template > Edit

18

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 8: List of Software
1. Brackets [URL : brackets.io] HTML, PHP & SASS Editor
CHAPTER 9: List of Modules
To download a modules from drupal.org, make sure your Terminal directory is on your website
folder root. eg. /var/www/yourwebsitename/
Then, just run the command:
# drush dl modules_name
modules name can be retrieved from the URL of the modules. For example:
https://drupal.org/project/flexslider
To enable a module via drush, enter the command below:
# drush en -y modules_name
Below are the list of useful modules that I used in drupal development:
1. Administration Menu [admin_menu]
2. Libraries API [libraries]
3. Flexslider [flexslider]
4. Disable Breadcrumbs [disable_breadcrumbs]
5. Panels [panels]
6. Panels Everywhere [panels_everywhere]
7. Wysiwyg [wysiwyg] Require external editor.
8. Context [context]

19

Drupal(Omega 4 Theme) Guide.


Prepared & compiled by Elvent Taliban.
OS : Linux Mint 17, Qiana(MATE). October 3rd, 2014.
CHAPTER 10: Errors & Solutions or F.A.Q's
1. Database Error (Can't enter localhost/phpmyadmin)
Error description : #1273 unknown collation
Solution :
Clear cookies (Web browser)
2. Login URL for Drupal
http://localhost/yourwebsitename/?q=user/login
3. Error ctools can't make cache
Solution :
# chmod 777 sites/default/files/ctools
4. The Image URL (../images/image.jpg) not working in the custom layout style.scss.
Solution :
For the custom layout style.scss file, for any background-image: url(must include full path)
the full path is,
http://localhost/yourwebsitename/sites/all/themes/yoursubtheme/images/image.jpg
bolded parts should be change according to your website directory name. :)
5. My Custom region did not show up after clearing cache
Solution :
For omega theme, you need to enable the respective demo region.
Go to Appearance > Settings > yoursubtheme > Development > Select Demo Region

20

You might also like