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

 
Composer, học Composer trong 5 PHP Components của Drupal 8

Composer, học Composer trong 5 PHP Components của Drupal 8

Drupal is not the only system changing though. PHPBB, EZPublish and even non-product PHP systems

Thảo luận về Search API và Apache Solr operating trong Drupal 7

Thảo luận về Search API và Apache Solr operating trong Drupal 7

In this article we will duscuss how  to configure the module Search API and Search API Solr search quickly, and how to display the data from Solr server with the help of the module Views.

Google cung cấp đồ thị hàm số trong kết quả tìm kiếm

Google cung cấp đồ thị hàm số trong kết quả tìm kiếm

Người dùng chỉ cần viết một hàm số bất kỳ, họ sẽ thấy được đồ thị của hàm số đó trong kết quả tìm kiếm của Google.

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

 

Diet con trung