b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Developer Reference
  3. Technical Reference
  4. How username autocomplete works

How username autocomplete works

1) We search logins on the current page only when entered login length is less 4 chars. I.e. when we enter @use we still search only on the current page between html elements with class user and login (e.g. <span class="user login man">paul</span>).

6.11.3+: In case the collection can have assignees (≤20), we also immediately match the usernames of potential assignees. If ≥21 potential assignees and an assignee hasn’t been mentioned on the page yet, they are not matched locally and they can only be matches through case 2 below.

2) But when we enter @user(login length >= 4 chars) we call AJAX/REST_API request to users/autocomplete endpoint. There we search ALL users which logins are started with entered string like user*. The results are sorted by following priority:

  1. if user_login == entered string like user,
  2. users which can be assignee of the collection,
  3. users which are members of the collection,
  4. all other users.
Created by fplanque • Last edit by fplanque on 2019-07-21 23:19 • •

No feedback yet

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
    • Website Skins/Themes
    • Email Skins/Themes
    • b2evolution Files
    • Website Integration
    • Plugins
    • Debugging
    • Technical Reference
      • Plugin API for item settings
      • URL Parameters
      • Roadmap & Unified Process
      • Charset Handling
      • Date Format
      • Technical Documentation
      • Image Sizes
      • Database Diagram
      • Username Autocomplete
      • Helper CSS Classes
      • Responsive images
    • Hacks
    • Credits
    • Development
    • How to... (Customize)
    • Scheduled Tasks Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Free CMS

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque