Giới thiệu TTR Configurable Widget in Drupal 7

Giới thiệu TTR Configurable Widget in Drupal 7

Microserve is proud to announce the submission of another Drupal contrib module – TTR Configurable Widget. The module extends upon the Taxonomy Term Reference field by adding further customisable options to use rather than the default ‘Checkboxes’ and ‘Select List’.

Use Case Scenario

To explain a suitable use case scenario, it would be a good idea to start with our own. We had a design which required us to list a bunch of configurable taxonomy terms in an unusual way, which was dubbed by the designer as ‘The Word Wall’. It was obvious that it was a taxonomy term reference field; however it didn’t appear to be a Select list or Checkboxes. We decided the best route to take was to create a module which adds to the core functionality, and then create any new interfaces as sub-modules.

How to use

What the module does is adds all the additional configurations - such as ordering and limiting - and then allows the user to choose a new widget type to display the terms. The Module comes pre-packaged with the Word Wall sub-module, however TTR Configurable Widget has been designed in a way which makes it easy for other developers to build their own extensions and contribute them back to the module.

To get started you need to first download and enable both the TTR Configurable Widget and Wall modules.

Enable the TTR Configurable Widget Modules

Once that's done you need to configure the fields of a content type to use the widget. To do this navigate to Structure >> Content types >> YOUR-CONTENT-TYPE >> Manage fields.

Then create a new Term reference field and choose TTR Configurable Widget as the Widget. Or if you already have Term reference field that you would like to use TTR Configurable Widget with, simply click on it's currently used widget in the "WIDGET" column then choose TTR Configurable Widget in the select list on the next page then continue (you will need to click on "Edit" on return to the Manage Fields page to configure the widget).

On the Edit Field page you will be able to configure the widget through a set of options listed in the "TTR CONFIGURATION SETTINGS" fieldset. Here you can choose the number of terms to display on the form, the order of these terms and the View type which controls how the terms are displayed on the form. For this example we've selected Wordwall as the View type. The Wordwall view also relies on the "Number of values" option in the "FIELD SETTINGS" fieldset to limit the number of choosable terms on the node form. We've set the number of selectable terms to 3.

Edit the TTR Configurable Widget settings

Once the configuration has been saved you will be able to see TTR Configurable Widget in action on the node form. The Wordwall view offers a clear and user-friendly way to select terms. Try it out!

TTR Word Wall Example #1

(Maximum number of items selected)

TTR Word Wall Example #2

Adding additional widget interfaces

We would love to hear any ideas for new interfaces to add to the module, just leave us a comment below and we will take it into consideration. If any developers have built anything themselves then feel free to open a ticket in the issue queue and we can get any contributions submitted to the next release.

See how we use it in one of our own projects below:

Giới thiệu TTR Configurable Widget in Drupal 7

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

 
Một số hàm thao tác với shortcode trong wordpress

Một số hàm thao tác với shortcode trong wordpress

Bài viết thực hiện dựa trên tài liệu Wordpress ở phiên bản 3.5.1. Shortcode được giới thiệu từ phiên bản 2.5, nó sẽ thực hiện một số chức năng nào đó bằng việc tạo một đoạn mã theo cú pháp trong nội dung bài viết

Why responsive design?

Nói về Rresponsive design là gì

Last fall and winter, the web got very small for me. From early November until late February, nearly all of my internet access was via my iPhone 4S. (I was away from the office dealing with an urgent family health matter.)

Lợi ích của Cloud Computing đối với doanh nghiệp

Doanh nghiệp hưởng lợi gì từ Cloud Computing

Ưu việt của Cloud Computing so với những công nghệ có trước là nó cho phép người dùng một khả năng sử dụng tài nguyên hiệu quả, với chi phí thấp, người dùng chỉ trả chi phí cho nhà cung cấp những gì đã sử dụng.

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

 

Diet con trung