Steps for adding a title attribute to Views in drupal configuration

Source: Internet
Author: User
Tags drupal

Views in Drupal provide many functions by default, and we usually use some simple functions.

Here is a problem. We usually add a title field in Views to make a list, but the title attribute is not added by default. I just studied it, the discovery can also be achieved through configuration.

This still requires us to be familiar with Views.

1. Originally, we only had the title and date fields. Here we need to add an nid field.


2. Click the Title field. Do not select "link to original content:


3. Click the nid field again:


4. Scroll down, click "rewrite result", select "overwrite output of this field", and add a "[title]" token to the text. (It must be noted that the available tokens must be before this field or the field itself .)


5. Check "output this field as a link" and enter "/node/[nid]" in the link path.


6. Continue, and fill in the "[title]" token in the "title text.


7. You need to limit the text length and adjust it as needed.


This is almost the case. Let's take a look at the preview effect (Note: Because the effect of the mouse passing through is not convenient to take screenshots, let's take a look at it ).



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.