Cho phép tạo autocompletes bên trong textareas for Drupal với At.js module

Cho phép tạo autocompletes bên trong textareas for Drupal với At.js module

A dev release is out for At.js, a module implementing the work of iChord which allows for autocompletes within textareas. This type of autocomplete can be seen on Github and Twitter, and now Long text fields within Drupal can have this too.

Cho phép tạo autocompletes bên trong textareas for Drupal với At.js module

The module works by creating At.js Listeners (which are Features exportable), editing the Long text field(s) and selecting which listeners should be active on it and finally enabling the listeners on input formats (this last part isn't necessary but recommended).

Aside from neat autocompletes what else is this good for? Well the module is capable of keeping a record of mentions so it's able to tell when new mentions are added via At.js and also when existing ones are removed.

As an example, here's what will feature in Harmony Forum (the reason why we've created a Drupal implementation of At.js). Harmony will have notifications for various things, such as when a user @mentions another user within a post the mentioned user will get a notification like 'User A has mentioned you in their post "post title"'. Pretty cool!

Any entity type can be referenced, searching off of a selected property (e.g. name for the User entity) and properties and field data as able to be used in the autocomplete result template (e.g. user avatars within the autocomplete).

The module provides hooks that let you respond to mentions and removal of mentions and chances to alter the query used to find autocomplete results, alter the results and a chance to change how the link to the entity is displayed via a theming function.

As with anything of this nature bugs are to be expected, we'll be watching the issue queue and submitting bugs to the At.js library. Any testing that could be done we'd be very grateful for!

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ả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

 
Microsoft, Google, Intel đứng ở “chiếu trên” Apple

Microsoft, Google, Intel đứng ở “chiếu trên” Apple

Trong bảng xếp hạng được đưa ra trên tạp chí Daily Finance, giá trị thương hiệu của Apple xếp sau 3 đại gia Microsoft, Google và Intel.

Facebook lại thay đổi thuật toán, các fanpage cần chú ý ngay

Facebook lại thay đổi thuật toán, các fanpage cần chú ý ngay

Facebook vừa mới cho biết họ sẽ mang những mẫu tin chất lượng hơn đến với bảng tin News Feed 

Tham gia First Association Board Meeting of 2014

Tham gia First Association Board Meeting of 2014

Join us on January 15 at Noon Pacific for our first board meeting of 2014. This meeting will be the first to use the metrics we developed in our 2014 Leadership Plan to tell the story of our progress.

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

 

Diet con trung