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

 
Cách làm việc của Patch Drupal Modules như thế nào trong Drupal 7

Cách làm việc của Patch Drupal Modules như thế nào trong Drupal 7

The first step to find a patch to a contributed Drupal module is to get to that module’s issue queue. 

7 chiến lược bán hàng trực tuyến hiệu quả nhất

7 chiến lược bán hàng trực tuyến hiệu quả nhất

Không có một bí quyết nào về việc đẩy mạnh doanh số bán hàng qua Internet. Bạn thu hút sự chú ý của đông đảo mọi người và gia tăng các khách hàng tiềm năng. Khi đó, bạn gắn kết với họ và chuyển những mối quan tâm của họ thành các giao dịch mua sắm.

Drupal 8 Upgrade, nâng cấp Drupal 6, Drupal 7 lên Drupal 8

Drupal 8 Upgrade, nâng cấp Drupal 6, Drupal 7 lên Drupal 8

All this excited talk of Drupal 8 has a lot of people dreaming of the day they get to start working with it. Some people get to build new sites from scratch all the time, but a lot of Drupal work out there

Wordpress Freelancer

 

Wordpress Freelancer