Allowing to filter Linkit results by domains of the edited page

Created on 30 January 2019, over 6 years ago
Updated 3 September 2024, 8 months ago

When we use Linkit , the results of autocomplete field match with all domains. However, most of the time, we need to link a page of the same domain.

So, I consider to create a Domain Access submodule, or even a Linkit submodule, to add the ability to filter the results by domains of the edited page.

We could imagine adding a check box Search in domains of this page only, selected by defaults, that enabled the filtering of the result by the domains of the edited page.

Would you have some guidance/recommendation for this feature?

Feature request
Status

Closed: won't fix

Version

1.0

Component

User interface

Created by

🇲🇹Malta Kwadz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada lindsay.wils

    Hello.

    Im using the latest version of the module with Drupal 10.3.

    I have multiple domains setup, and a role that allows a user to edit/create content only on their assigned domain.

    When using CkEditor and creating a link within the text, the autocomplete seems to be showing content from all domains, not just their assigned domain.

    Is something wrong in my setup, or is this the intended function, to show content from all domains?

    Thank you

  • Hey Lindsay! I'm in the same boat. I believe the Linkit module itself is going to be the cause of the issue. I see you posted on a few of the issues I was looking at over on that module as well.

    I think there is an issue open that should allow a hook to be added and then we can implement a link_domain submodule. But I'm not sure there's currently a way to do it.

    Linkit states most of their core features are in D11. I think since it's in core for D11 it's probably more likely to work as intended but I know all your dependencies may not be D11 compatible yet (ours aren't!).

    https://www.drupal.org/project/linkit/issues/3366761 Provide a hook/event for modifying the suggestions list Active

  • 🇨🇦Canada lindsay.wils

    Thanks for the response, OK will see how it all goes when we upgrade to D11

Production build 0.71.5 2024