I love the new feature "switch profile", it greatly enhance the potential of LinkIt.
However, I soon realized that I lost the ability of weighting the profiles and to restrict them by role.
What is even more problematic is that the selected profile does not persist, so every time I open the dialog I have to switch profile if I don't want the default one. Additionally, there's no indication of what's the active profile until you open the selection drop-down.
Many user complained thinking that Linkit is broken simply because they expected the profile to be persistent and they did not realize it was back at the default profile every time.

Comments

anon’s picture

I'm aware of the confusion about the profiles, and I feel it's kind of complicated for me as well.
But here is my initial thoughts about how this should be working.

Linkit profiles are tied to either a field, were you can only use one profile, or to editors which are really just a text format.

Text formats have permissions by roles, so I thought that Linkit should use them instead or implementing its own upon text-formats.

So the solution should be to have Linkit profiles assigned to only the text formats that the profile should be used on, and set the permissions for the text formats.

The other problem you stated, the one about the not persistent selection of profile is kind of a bug. I don't know how to fix this. If you have any suggestions, please let me know.

pbattino’s picture

The way I was thinking of using profiles was cool for me to solve a specific problem, but probably too a specific case, a bit out of scope, I admit. But still, it would be a great tool to quickly switch to a different type of selection.
In my case I wanted only certain roles to be able to add a link to nodes AND to files, like any other users only be able to link to nodes. That's why the combination of profiles and roles was great for me: by default everybody use a basic profile, but a poweruser can switch to the enhanced profile.

As far as persistence is involved, in this case I usually DON'T use cookies, I rely on localstorage which has already a wide support across browsers ( http://caniuse.com/namevalue-storage ). Save the value when the users switch profile, and read it when opening the pop-up. I did a similar thing for Media module pop-up and it worked out OK.

bas123’s picture

I hope i'm in the right place... This thread was under the Linkit Plugin

Configuration
After the installation, you have to create a Linkit profile. The profile will contain information about which plugins to use. Profiles can be created at /admin/config/content/linkit.
When you have created a profile, you need to enable the Linkit plugin on the text format you want to use. Formats are found at admin/config/content/formats.

Sorry, I am unclear on the data to place in the profile!
I have the linkit button working in ckeditor but all it does is paste the share url which I pasted from YouTube.

I was of the impression that this plugin didn't require an IFramely or oEmbed Key!

Can anyone help?

anon’s picture

@bas123, this is not the right place, you should have created a new support issue instead of asking in this one, but I will try to explain it to you anyway, and I guess you are on Drupal 7 and not 8.

A Linkit profile can be seen as a settings container. It will hold settings on how Linkit will operate when the profile is used in the editor.
Mostly you will have to choose which kind of Linkit search plugins you want to use. I.E. do I want to be able to search for nodes? users? term? and so on. What kind of attributes do I want to be able to set? title? id? rel? and so on.

This information will later be used when you have added the Linkit editor plugin to the text format.

jdearie’s picture

I second this request. I have 2 profile types - one for editor and one for field. the default is always the field profile - even when used with an editor... and even though the properties are exactly the same, the field profile won't find files when used via an editor.

Once my users switch profiles to the editor profile, it works as intended. But since there's no need to ever use the field profile in an editor, I would love to be able to set the default profile (or at least only allow the use of the appropriate profile)

mark_fullmer’s picture

Status: Active » Closed (outdated)

This branch of the Linkit module is no longer under active development, and this issue hasn't seen any comments in 6 years.

In order to help the community and the module maintainers focus work on the issues for this module that are most important to the Drupal community, I'm going to close this issue.

If the community feels this is in error, we can re-open it.