Nodequeue: quản lý một nhóm Drupal Nodes

Nodequeue: quản lý một nhóm Drupal Nodes

There are various ways to create lists of nodes in Drupal. So what's different about the Nodequeue Module?

Nodequeue allows you to manually control the order of your nodes. You can use drag and drop to re-order a list of nodes. Whereas a module like Views will automatically publish all of your nodes that meet certain criteria, Nodequeue allows you to control the order of those nodes.

Nodequeue is very often used for slideshows and other site features where you need to choose which articles to show.

Step 1. Install the Nodequeue module

Two additional modules will be automatically installed under Nodequeue. Another will be under Development. The only essential one is Nodequeue itself if you are making simple lists. Smartque taxonomy allows you to create a list from a taxonomy and gives you the same control over it. You won't need Nodequeue Service unless you are an advanced user and have a good understanding of services on Drupal.

There are some optional enhancements to the module available you can install if you need them.

Step 2. Enable Nodqueue Generate

tutuploadsmedia_1336156793742.png
  • Go to Modules > Development.
  • Activate Nodequeue Generate.

Step 3. Create a Queue

tutuploadsmedia_1336152598151.png
  • Go to Structure > Nodequeues to access the module.
  • Click Add simple queue.

Step 4: Configure the Queue

tutuploadsmedia_1336157627150.png
  • Title: Featured Articles.
  • Queue size: Enter 0 and there will be no limit on the size of the list. I limited it to show 5 articles.

Step 5. Choose Content Types for the Queue

tutuploadsmedia_1336158876459.png
  • Check the box for the type of content the queue will contain.
  • Click Submit to save your choices.

On our site we don't have any administrator roles except for the super admin, so there is nothing to choose in that section. If you have roles, you will be able to assign permissions.

tutuploadsmedia_1336159268864.png

The queue has now been created. There are three ways to start building your list. We'll show you all of them.

Method 1: Add Nodes to the Queue

tutuploadsmedia_1336159443324.png
  • Click the Generate Queue Assignments tab.
tutuploadsmedia_1336160216918.png
  • Check the box next to the queue you want to generate.
  • Click Generate.
tutuploadsmedia_1336160046327.png
  • Return to the List tab.
  • Click View on the Featured Articles View.
tutuploadsmedia_1336160106471.png
  • Hover over the drag icon and you can reposition your nodes.
  • To the far right, you'll see a delete link if you want to remove any from the list.
  • Click save to make sure your new order is saved.

Method 2: Add Nodes to the Queue

tutuploadsmedia_1336160568292.png

The second way to add to the list is to type the exact name of the node into the field. You can skip clicking on the Generate Queue Assignments tab and enter the titles directly. Above shows the result of clicking the view link without generating a list first.

Be sure to save anything you add.

Method 3: Add Nodes to the Queue

  • Click Nodequeue when in the content editing mode.
tutuploadsmedia_1336160954324.png
  • Click Add queue.

Conclusion and Views

You have now created a list that can be reordered with simple drag and drop. But you're going to want to show this list on the site. This is now easily done by using the Views module to create a view for display of the list. If you need to know how to use Views, we have a detailed explanation in our Drupal Intermediate Class.

Also, after you've created a nodequeue, go to Structure > Views and there should be a view named nodequeue_1. That will give you a big start towards integrating Nodequeue and Views.

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

 
New iPad lại trục trặc với kết nối Wi-Fi

New iPad lại trục trặc với kết nối Wi-Fi

Một số khách hàng đã phàn nàn rằng iPad mới kết nối Wi-Fi kém hơn nhiều so với những mẫu iPad trước đây của Apple.

CMS WordPress

Thủ thuật tối ưu hóa WordPress – nâng cao

Liệu blog của bạn đã đạt tốc độ cao nhất chưa? Tốc độ load trang có nhanh hay không? Tốc độ khi truy cập là một trong những nhân tố chính tạo sự thiện cảm cho khách viếng thăm. Do vậy Misao nghĩ bạn nên dành thời gian để tu bổ/ tối ưu hóa trang web của mình. Trong bài viết này, tôi sẽ liệt kê một vài thủ thuật khác nhau giúp bạn tăng tốc cho blog WordPress của mình.

Tổng hợp các biểu tượng hay trên facebook

Tổng hợp các biểu tượng hay trên facebook

Mặt vui, Nhảy múa - Ca hát,...

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

 

Diet con trung