Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra info on the contact autocomplete list #9401

Open
resposit opened this issue Apr 2, 2024 · 1 comment
Open

Extra info on the contact autocomplete list #9401

resposit opened this issue Apr 2, 2024 · 1 comment

Comments

@resposit
Copy link

resposit commented Apr 2, 2024

I tried to customize $config['contact_search_name'] as:

$config['contact_search_name'] = '{name} - {department} <{email}>';

But my departments are very long strings and get truncated in the autocompletion popup.

I tried to split the strings on multiple lines, like:

$config['contact_search_name'] = '{name}<br>{department}<br>{email}';

But, apparently html tags don't get recognized.

Is there any workaround ?

@alecpl
Copy link
Member

alecpl commented Apr 13, 2024

That would require some changes to the list, just breaking the line would not look good, imo. It makes sense, but have to be done properly.

I'd probably do this with a separate option (contact_search_description) and if specified it would add an extra line below the name and email, styled differently. So, you'd set $config['contact_search_description'] = '{department}'.

@alecpl alecpl added this to the later milestone Apr 13, 2024
@alecpl alecpl changed the title Html tags in custom $config['contact_search_name'] Extra info on the contact autocomplete list Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants