Ammar.Al-Nazer

=**Tutorial 1: How to create a Contact Form using Webform Module on your Drupal site**=

This is a tutorial to assist you in creating a simple web form to your Drupal site. You will learn to add a name field, phone number field, email field, preferred method of communication field, and a question a comment field.

Install Webform module

Enable Webform module Go to Add Content -> select Webform

Create Webform -> Add title (Contact Form)

Select provide a menu link -> disable comments -> and uncheck mark promote to front page -> click save Add component fields, I will add ‘Name’ field

For name field -> make sure you put a check mark beside mandatory and unique checkboxes and Save component

Add a ‘Phone number field’ -> check mark ‘mandatory’ checkbox -> click Add

Add ‘Email’ field -> choose ‘Email type field’ -> check mark ‘mandatory’ checkbox -> click Add

Add ‘Preferred method of communication’ field -> choose ‘select options type field’ -> check mark ‘mandatory’ check box -> click Add

Because it’s a select option field, you have to put your options in. Under ‘Options’ box type Phone & Email. Scroll down and under ‘Display’ put a checkmark beside Listbox. -> Save Component

Add a ‘Question/Comment’ field -> choose’ text area’ type field -> and Add -> save component

Now we are done with the form and we need to set up emails

Select E-mails at the top right hand side -> Add your email address

Click Add -> keep all default settings the way they are -> Save email settings

Next, click on form settings at the top right hand side

Add a confirmation message for users to see after form submission -> Leave all default settings exactly the way they are -> Save configuration

Click View to see the completed form Voila, You're Done!

=Tutorial 2: Adding YouTube video content to your Drupal site=

Firstly, you need to make sure you have the media module installed. After that, we need to install 2 mandatory modules:

1) The Embedded Media Field module ([]) 2) Media: YouTube module ([])



Install and enable both of those modules.

Then, go to structure -> content types and add a multimedia asset field.

As you choose the settings, make sure you check mark both Video and YouTube boxes. Click Save to save the new field.

There is one more important thing you must now do to make sure that the videos display.

Go to Structure -> content types -> manage fields and Click on Manage Display at the top of page

Normally settings for the video field would be available but in this case you must click Save before they appear. Then you can click the cog on the right side, next to the YouTube video field

Set the file view mode to Large and click Update and Save afterwards so new settings aren’t lost.

Now you need to go to Add content and use the new YouTube video field.

Once you’ve inserted the YouTube URL and clicked submit, you should see a video thumbnail as in the image below

Make sure you Save the content and your video will be showing on your site

And Voila, You're Done!