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

Customize autocomplete search results #34

Open
gmclelland opened this issue Jan 10, 2017 · 2 comments
Open

Customize autocomplete search results #34

gmclelland opened this issue Jan 10, 2017 · 2 comments

Comments

@gmclelland
Copy link
Contributor

Here's another idea.

I'm not sure if this is possible, but It would be nice if users could somehow customize the text/markup of the admin theme's search autocomplete results similar to how you did with customizing the page tree labels with "Allow markup tokens for "List of fields to display" in PageListTweaks.

That way people could include images, icons, page ids, or whatever in their autocomplete search results.

That could be also be helpful for those who are using the "image as a page" techniques. If you aren't familiar with the "Image as a page" technique, It is where you store only 1 image per page along with fields for that image's meta data like image attribution, image tags, etc... That technique is used when people want an image library to reuse already uploaded images.

When performing an autocomplete search for an image they could see their image thumbnail and that image's page title in the autocomplete search results.

In the Drupal world this reminds me of https://www.drupal.org/project/finder and https://www.drupal.org/project/search_autocomplete modules

Here is what a customized autocomplete could look like with images in the autocomplete search results.
image

@rolandtoth
Copy link
Owner

I see the benefits but I'm also not sure if this is doable without enormous efforts. There are lots of fields to take care of (almost all) and the final outcome is unpredictable (results can contain any kind of pages, not only "image" types, etc).

@gmclelland
Copy link
Contributor Author

No worries, just thought I would throw it out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants