Tự động tạo tiêu đề trong Drupal với Node Titles.module

Tự động tạo tiêu đề trong Drupal với Node Titles.module

It's fairly common to replace the title field in Drupal.

There are many possible reasons to replace the title, but most of them come down to this ... the title field is not very flexible.

To take just one example, imagine that you're adding a directory of your staff members to your site. Presumably, you'd like the person's name to be the title of each page. However, because the title field only consists of a text field with 255 characters, you can't have close control over what people enter. The solution is to replace the default title with specific "First Name" and "Last Name" fields.

So, here's how to automatically generate titles in Drupal 7.

Step 1: Install

Install these two modules:

media_1352773828770.png

Step 2: Set Up Each Content Type

  • Go to Structure > Content types
  • Look for the automatic title generation area as in the image below
  • You'll be able to use tokens to automatically replace the title

media_1352774012751.png

  • In the example below, we're completely hiding the title field. If we choose the bottom radio button, the title field would be available to users and our tokens would only work if the title field isn't used.
  • In the image below, we're automatically replacing the title with the First name and Last name fields.

media_1352774943444.png

Step 3: Create the Content

  • Click Add content and create an example of your content type
  • Notice that the title field is completely missing

media_1352775119615.png

  • Save the content and your title will be automatically generated:

Tự động tạo tiêu đề trong Drupal với Node Titles.module

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

 

Vô hiệu hoá tính năng bảo vệ mật khẩu trong window 7

Trong phần cuối của loạt bài “17 cách để tăng tốc Windows 7″, CafeF1.com sẽ giới thiệu với độc giả những cách thức còn lại để tăng tốc Windows 7 toàn diện.

Drupal 8 Now: Sử dụng Composer dependencies trong Drupal 7

Drupal 8 Now: Sử dụng Composer dependencies trong Drupal 7

Using namespaces and the PSR-0/4 standard creates a clean and simple way of sharing code across projects. This is a core part of the Drupal 8 architecture.

Các thao tác cơ sở làm việc mongodb trong java

Các thao tác cơ sở làm việc mongodb trong java

Để  làm việc được với mongodb trước hết bạn download thư viện mongo tại link sau :

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

 

Diet con trung