Site Administration Page 2 - Drupal: Configuring Your Installation |
OK, now that you have completed the home page, your next task is to add two common pages, the "Contact" and "Terms & Conditions" pages. The procedure is as follows: Step 1. Log in as administrator to add content. Step 2. Click "Create Content." Step 3. Click "Page." Step 4. Enter the title and the content of those pages. Step 5. Click "Menu Settings" to expand. Step 6. Under the Menu link title, you can enter "Contact" for Contact pages or "Terms" for the Terms and Condition page. Step 7. Under "Parent Item," select "Primary Links." Step 8. Leave "weight" at its default value. Step 9. Go to "Publishing Options." Make sure that "Published" is checked but NOT "Promoted to front page." Step 10. Click "Save." This will publish the content to your Drupal website. Take note of the default URL generated by Drupal for both the Contact and Terms & Conditions pages, e.g: Contact page URL: http://localhost/drupal/node/2 Keywords in the URL for Your Drupal Website You might notice that the URLs in the previous section for contact and terms & conditions pages are not SEO friendly. They do not use keywords in the URL, which has some impact in terms of search engine optimization. Suppose you would like to do the following conversion: http://localhost/drupal/node/2 ==> http://localhost/drupal/contact To do this, you need to enable the "Path" module in your Drupal module administration page. 1. Log in as administrator. 2. Go to "Administer" ==> "Site Building" ==> "Modules." 3. Scroll down and find the "Path" module. Check it and then click "Save Configuration" to enable the module. Now, go to "Administer" ==> "Site Building" ==> "URL aliases." If you do not find "URL Aliases," then you have not correctly enabled the "Path" module. Let's change the URL of http://localhost/drupal/node/2 to http://localhost/drupal/contact. 1. Click "Add Alias." 2. Under Existing System Path:, enter: node/2 3. Under "Path alias" enter: contact Make sure there are no spaces before or after the aliases and path. 4. Click "Create new alias." Screen shot:
Repeat the steps from 2 to 4 for the terms and conditions page. Now log out from your website as administrator. You will notice that the URLs for the contact terms and conditions pages are now keyword-based. Rearranging Primary Links in Navigation Menu and Changing Logo Suppose you would like to arrange from left to right, by order of importance in the top primary link navigation: Home page --- Terms --- Contact. You can rearrange by first logging in as administrator then going to Administer ==> Site Building ==> Menus ==> Primary Links. Use the cross symbol to move the menu item either up or down according to your own choice. To implement this change, click "Save configuration." To change the logo of your Drupal website (which uses the Drupal logo as its default), go to this path: htdocs/drupal/themes/garland (since the example in this tutorial uses the Garland theme by default). Replace logo.png with your own logo while maintaining the logo image dimensions and file type. Log out as administrator and then refresh your Drupal website in the web browser. It should look like the screen shot below.
In the third part of this tutorial, you will learn about working with themes and modules in Drupal.
blog comments powered by Disqus |
|
|
|
|
|
|
|