It might be an idea to use Linkit when adding a spotlight with a link? And that might also be an idea for the links list. What do you guys think?

Comments

caschbre’s picture

While I've used linkit with wysiwyg, I haven't tried it with 'link' fields. Is that what you're referring to? And does linkit work with 'link' fields now?

lsolesen’s picture

I thought it did. It can be attached to fields, the description on the project page says. However, I haven't tried i yet myself. Just thought it would be a nice addition, when it is a dependency of panopoly anyways.

caschbre’s picture

Assigned: Unassigned » caschbre

I'll check this out and see if it works with link fields.

caschbre’s picture

So it looks like linkit 3.x allows linkit profiles to be configured for use on non-wysiwyg fields. Unfortunately there is not an upgrade path from linkit 2.x -> 3.x. I created another issue regarding the upgrade.

Related: #2186541: Upgrade linkit module 3.1+

caschbre’s picture

Version: 7.x-1.0-rc5 » 7.x-1.x-dev
Component: Magic » Widgets
caschbre’s picture

Status: Active » Postponed

Marking this postponed until #2186541: Upgrade linkit module 3.1+ is resolved.

We could alternatively try to write our own way of using linkit 2.x on fields but I think that may be wasted effort that we could better spend on getting panopoly upgraded to linkit 3.x.

caschbre’s picture

Note: a patch needs review at #2186541: Upgrade linkit module 3.1+ that can open up the way to get this issue resolved.

caschbre’s picture

So after some digging, it doesn't look like we can easily use linkit for spotlight. The issue is spotlight has a custom field type as opposed to using the link field. Looks like I'll be able to get linkit (3.x) working with the links widget though.

dsnopek’s picture

Status: Postponed » Active

No longer postponed on Linkit 3, although, it sounds like that didn't help anyway...

dsnopek’s picture

Status: Active » Needs work
Issue tags: +Needs tests
Related issues: +#2013965: ability to link images placed with image widget
StatusFileSize
new638 bytes

This issue which was recently committed to Linkit would make this possible:

#2651404: Allow Linkit support for any eligible element type

I've attached a simple patch that uses it, which depends on the patch in #2013965: ability to link images placed with image widget. We'll also need a patch to update the version of Linkit we're using to add just that patch, and some tests.

dsnopek’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new756 bytes

Here's an additional Behat test scenario!

EDIT: Test build on Travis: https://travis-ci.org/panopoly/panopoly/builds/147644296

dsnopek’s picture

Ah, yeah, this fails tests because it depends on the latest -dev of Linkit, which I'm running locally (where the tests pass) but we haven't integrated it into Panopoly yet.

dsnopek’s picture

Adding a patch to update Linkit and include the patch from dev that we need to make this work. Then I'll try on Travis again!

EDIT: Here's the Travis build: https://travis-ci.org/panopoly/panopoly/builds/188957455

  • dsnopek committed c4cc8ff on 7.x-1.x
    Update Panopoly Widgets, WYSIWYG and Test for Issue #2173535 by dsnopek...
dsnopek’s picture

Status: Needs review » Fixed

Passed tests, so, committed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.