Hướng dẫn Show Drupal Users Their Own Content

Hướng dẫn Show Drupal Users Their Own Content

If you have multiple content creators on your site, you may want to make their life easier.

One way that you can help is by providing a list of the content they have created.Hướng dẫn Show Drupal Users Their Own Content

There are advanced ways to do this, such as using the Workbench module, but in this tutorial we'll show you an easy way to provide a list of each user's content.

The only module that you need to do this is Views: http://drupal.org/project/views.

  • Get started by going to Structure > Views.
  • Click Add new view.
  • Enter a View name.
  • Choose to create a block.

media_1386106465094.png

  • Click Continue & edit.
  • Find the Relationships area on the right-hand side and click Add.

media_1386106565625.png

  • Search for and choose Content: Author

media_1386106599828.png

  • Click Apply (all displays) twice.
  • Find the Filter Criteria area on the left-hand side and click Add.

media_1386106701331.png

  • Choose User: Current.

[Note] In Views 2, this option was available without adding the relationship first. Now, you must make sure the relationship is added.

media_1386106784320.png

  • Click Apply (all displays).
  • Set Is the logged in user to Yes:

media_1386106839544.png

  • Click Apply (all displays).
  • Click Save in the top-right corner.

If you want to test that you've set up your block correct, try this test:

  • Click Add next to Fields.
  • Search for and choose User: Name.
  • Click Apply (all displays).

You'll now be able to see the preview below. You can make sure that each content comes from the same author.

media_1386106993040.png

If this is correct, you can click Cancel to discard your changes.

You can now go and publish your block via Structure > Blocks.

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

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

 
Tin đồn: Giá chính thức Windows 8 Pro là 199,99 USD

Tin đồn: Giá chính thức Windows 8 Pro là 199,99 USD

Theo The Verge, Windows 8 Pro, hệ điều hành sắp được Microsoft ra mắt vào ngày 26/10 tới đây, sẽ có giá 199,99 USD sau một thời gian quảng bá giới thiệu sản phẩm.

Nguy hại khôn lường khi sử dụng bao cao su

Nguy hại khôn lường khi sử dụng bao cao su

Theo viện nghiên cứu Dị ứng và Miễn dịch của Mỹ, hiện nay, có rất nhiều trường hợp ở cả nam và nữ bị dị ứng với các loại bao cao su được làm từ mủ lấy từ nhựa cây cao su hay các hóa chất có trong bao cao su

Sub faceboook là gì? Cách tăng Sub như thế nào?

Trong bài viết này mình sẽ nói sơ qua về Sub facebook hay còn gọi là Fllow 

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

 

Diet con trung