Thursday, July 7, 2011

Build first application with drupal

As a php programmer installing drupal is not a big deal . is it ?  Now what ?
Let move in by making a website for giving informatoin about company , correct ..
so what you think what should be in basic website for giving informatin about any comapny.according to me there should be 5 ,6 page about company infomation , 1 contact form , company logo , google map for company location
SO let start step by step
1) Enable some of needed module profile , path , taxonomy , search ,php filter
2) start with adding content admin /node/add/page
Put tile in tile label Title: * - Hello welcom to anshul.com

next - put description of your company in content area.
In drupal there are 3 types of default filter available for
content called as "Input format"   a) Filtered HTML b)Full HTML    c) PHP code

In our case we should choose full HTML to make content more beautiful and to be rich text format.
(Note- you can use http://drupal.org/project/fckeditor )

for wysiwyg editor
3) make a menu setting if you want this content to be display on click of menu put a menu name at menu setting

4)Comment setting - Put comment setting acording to content . for our website we are making this first content for front page so we will not allow user to comment

5) Remember path setting option only come when you enable path module from drupal admin

save the page ,wow we have page ready :) without hassel!! we have menu created with search engine optimized url great.. Thanks to drupal

now for contact us page
a)Enable core module "contact" from drupal module
b) add category /admin/build/contact/add
put the required information like email email, autoreply message etc


c) now add the permission to contact form >user managemnt -> permission
/admin/user/permissions
allow which type of users you want to the contact form should access
d) contact form is ready now
www.yourdomain.com/contact

you never get this easiyness of contact form in any CMS
E) Now make a menu admin/build/menu
 ->add new menu item /admin/build/menu/add
  - url of page
- title of menu

 for google Map on contact us page
Download http://drupal.org/project/gmap this contributed module enable it from admin

Please view this video for moore detail

Google map in content
After view on the above video it is very complicate to insert goolge map inside yout content . but relax we have the gmap macro builder to convert worries into hurry.
download GMAP macro builder. make a macro code
Use the online GMap macro builder to design your map and copy the generated macro text to the clipboard.

eg -

Map
Satellite
Hybrid
next step is
Go to your input formats page and select "Full HTML" as default input format. Configure the "Full HTML" input format, select "GMap filter" and click on the "Save configuration" button.
Now
insert this code inside the  content -> Select full html as a filter
You will see the result page contains the gmap inside the

No comments:

Post a Comment