I just installed Linkit and then Linkit Picker but the last doesn't seem to work.

I don't know if I forgot something. I just enabled the module. And there's no documentation informing of any needed setting before use.

When I open a node with CKEditor and click on the linkit icon I only get what appears on the attached image. There's no option to browse the nodes.

----------------------
Drupal 7.10
CKEditor 7.x-1.6
Views 7.x-3.0
Linkit 7.x-2.1
Linkit Picker 7.x-1.0

Corolla theme 7.x-2.2

CommentFileSizeAuthor
no_linkit_picker.png22.69 KBAnthony Gaudino

Comments

bmblack’s picture

I am experiencing the same issue.

jguert’s picture

I am experiencing the same issue, too. I am using tinymce.

helmo’s picture

Title: Linkit Picker doesn't work for me » Linkit Picker compatibility with Linkit 2.x

This must be due to the lack of compatibility with Linkit 2.x

Linkit 1.x had separate sub modules (see: #1112726: Merge Linkit submodules into one module)

I'm changing the title to further track the problem here.
I've also added a warning to the project page.

clemens.tolboom’s picture

Having some input from Helmo I ended up with (textual patch as netbeans vs git vs email is not my best friend

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -5,11 +5,20 @@
  * Main file for linkit_pikcer module.
  */
 
+function linkit_picker_init() {
+  drupal_add_css(drupal_get_path('module', 'linkit_picker') . '/linkit_picker.css');
+  drupal_add_js(drupal_get_path('module', 'linkit_picker') . '/linkit_picker.js');
+}
+
 /**
  * Implements hook_form_alter().
  */
 function linkit_picker_form_alter(&$form, &$form_state, $form_id) {
-  if ($form_id == "_linkit_form") {
+  if ($form_id == "linkit_dashboard_form") {
+    $profile = linkit_get_dashboard_profile();
+    $form['link']['#attached']['js'] = array(
+      drupal_get_path('module', 'linkit_picker') . '/linkit_picker.js',
+    );
     $form['link']['link']['#field_suffix'] = '<input type="submit" id="linkit-imce" name="linkit-imce" value="Choose File ..." class="form-submit" />';
     $form['link']['attributes']['#weight'] = 3;
     $form['link']['browser_wrapper'] = array(
@@ -24,7 +33,7 @@
     $modulesInstalled = module_list();
     $views = array();
 
-    if (array_key_exists('linkit_node', $modulesInstalled)) {
+    if (isset($profile->data['plugins']['node']['enabled']) && $profile->data['plugins']['node']['enabled']) {
       $views[] = 'linkit_picker_node';
       $form['link']['browser_wrapper']['node'] = array(
           '#type' => 'button',
@@ -34,7 +43,7 @@
       );
     }
 
-    if (array_key_exists('linkit_user', $modulesInstalled)) {
+    if (isset($profile->data['plugins']['user']['enabled']) && $profile->data['plugins']['user']['enabled']) {
       $views[] = 'linkit_picker_user';
       $form['link']['browser_wrapper']['user'] = array(
           '#type' => 'button',
@@ -44,7 +53,7 @@
       );
     }
 
-    if (array_key_exists('linkit_taxonomy', $modulesInstalled)) {
+    if (isset($profile->data['plugins']['taxonomy']['enabled']) && $profile->data['plugins']['taxonomy']['enabled']) {
       $views[] = 'linkit_picker_term';
       $form['link']['browser_wrapper']['term'] = array(
           '#type' => 'button',

and

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -16,7 +16,7 @@
 		attach: function(context) {
 			$('.view-display-id-default tr td', context).click(function() {
 				var type = $(this).parent().find('.views-field-linkit-picker');
-				$('.form-item-link input.form-text').val($.trim(type.text())).focus();
\ No newline at end of file
+				$('#edit-linkit-path').val($.trim(type.text())).focus();
\ No newline at end of file
 				$('html, body').animate({scrollTop:0}, 200);
 				$('#edit-browser-wrapper.collapsible legend a').click();
 			});

helmo’s picture

I pushed some changes, based on the above.

And opened two sub issues:
#1416300: Include JS & CSS properly
#1416304: Match link value to linkit 2.x default/preference

helmo’s picture

Status: Active » Postponed

Neither I nor anon have time to work on this anymore...

Feel free to pick it up if you feel strongly about this module.

vacilando’s picture

Also looking for this compatibility...

harald_’s picture

Is there any other solution which can cover this?
Without wanting to sound arrogant, I'm surprised that there is no current version for this.
The autocomplete solutions are not user-friendly.

boyan.borisov’s picture

Version: 7.x-1.0 » 7.x-2.x-dev
Issue summary: View changes
Status: Postponed » Needs work

I'll reopen this one because I'm the new co-maintainer of the the module.

Currently I released a version of Linkit picker compatible with Linkit v2 but it's pretty unstable. Hope so that with your help we'll make it more stable really soon.

  • boyan.borisov committed 89fd297 on 7.x-2.x
    Issue #1403040 by Anthony Gaudino, clemens.tolboom, helmo: Linkit Picker...
boyan.borisov’s picture

Status: Needs work » Fixed

I committed some changes in module in order to make v2 more stable.
Currently there is only one known issue related with the view pagination described in #1425854.

Commit 89fd297 on 7.x-2.x

Status: Fixed » Closed (fixed)

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