简体   繁体   中英

How to set URL alias as link in a Drupal view?

I have created the taxonomy and add some item under the taxonomy. Then it is define to the content type and add some content under taxonomy. I have shown the taxonomy title to my view and content under taxonomy I shown to other page.

I am facing issue to how to set link on content title. 在此处输入图片说明

在此处输入图片说明

How to replace link with

http://localhost/drupal7/node/19

to

http://localhost/drupal7/artist-works/Robert-Boynes/Infinite-Red

Presuming that you have Pathauto installed and all nodes already have an alias do the following:

  1. In your view add a new field "Content: Path".
  2. Hide that field.
  3. Ensure that you place this field BEFORE your title field (reorder).

Now the alias will be available as token to build the link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM