Tạo html tiêu đề với Page Title.Module

Tạo html tiêu đề với Page Title.Module

Page Title is a very simple, yet very important module when it comes to SEO on your Drupal site. This module gives you granular control over your meta titles.

Although Nodewords was the preferred option in Drupal 6, it didn't make the leap to Drupal 7 became the Meta Tags module in Drupal 7. The Page Title module is one of the options now available for Drupal 7.

The meta title is found in your HTML head code and is surrounded by <title> tags. The meta title appears in the browser bar when people are viewing the page. It also appears on SERPs (Search Engine Result Pages), and a well written title can greatly increase the number of people who click through to your site.

Step 1: Download and install the module and dependency

tutuploadsmedia_1340035249945.png
  • You need two modules to make this work, the Page Title module itself and the Token module.
    • Page Title Module: http://drupal.org/project/page_title
    • Token Module: http://drupal.org/project/token
  • You can access the configuration and the permissions links from the Module page immediately after installation or at any time go to Configuration > Page Titles from the administration menu.

Step 2: Configure the module and set the patterns

tutuploadsmedia_1339965361234.png

Page Title provides control over the <title> element on a page using token patterns and an optional textfield to override the title of the item (be it a node, term, user or other). The Token Scope column lets you know which tokens are available for this field (Global is always available).

  • To place the tokens into the fields, place the cursor into the field you want to edit.
  • Scroll down on the page and you can find the available tokens.
tutuploadsmedia_1339965436682.png
  • Click the triangles next to the names, to expand the choices and drill down to the token you want to use to set the pattern.
  • Click the token link and it will automatically be inserted into the field for you.
  • You can put more than one token into the field.
  • In the image above we are making the title from a combination of the current page title, plus the title of the site.
tutuploadsmedia_1340033864373.png
  • After saving the changes, you can see that the <title> tag on the site has been changed by viewing the source in your browser. In this case it is created from the title of the article and the title of the site (my test site is named Drupal 7).
Page Title Module - Control Meta Titles in Drupal
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Phần 1: Hướng dẫn Data Migration từ HTML Pages vào Drupal 7

Phần 1: Hướng dẫn Data Migration từ HTML Pages vào Drupal 7

I recently was faced with a project where the client has a "database" of items that will be brought into the brand new Drupal 7 site that we are preparing for him.

5 Commandments sử dụng thường xuyên trong xây dựng form

5 Commandments sử dụng thường xuyên trong xây dựng form

The label tag associates a single label tag to a single form element (text fields, radio buttons, checklists, etc.)

11 Thủ thuật tìm kiếm trên Google Search

11 Thủ thuật tìm kiếm trên Google Search

Tìm từ ngữ, trang web, tìm theo thời gian, loại tập tin, tính toán, hay thậm chí đổi đơn vị trên Google Search đều có "chiêu" cả!

Công ty diệt chuột T&C

 

Diet con trung