Download & Extend

Freelinking Does not Work with Views Backlinks

Project:freelinking
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

See the issue that started here: http://drupal.org/node/452828

The backlinks view shows other nodes that link to the current node. It works off of the drupal search index and looks for links formetted like <a href=

Merlinofchaos suggests:

I think that would require freelinking (or maybe something on behalf of freelinking) implement hook_search to translate freelinks so that search gets the right information. Actually it's probably nodeapi $op = 'search'. Once search has the right information, Views can take advantage of it.

Comments

#1

I believe Merlin meant nodeapi $op = 'update index', as I don't see a 'search' op in the nodeapi documentation.

#2

Assigned to:Anonymous» Grayside

Okay, this patch seems to provide the needed functionality.

For every node being indexed for search, the node input format is checked. If that format includes the freelinking filter, it processes the node's body through the freelinking filter. The results of that processing are then extracted and added to the search index.

There is a minor problem with this approach- because only the freelinking filter is applied to the text, any other filters in the node's input format are ignored.

AttachmentSize
freelinking_indexable.patch 875 bytes

#3

Status:active» needs review

Forgot this. Sorry for the triple post.

#4

This had the right idea, but wasn't matching the filter properly and needed to replace the path alias with the node/nid. See attached patch.

AttachmentSize
452828.patch 1.19 KB

#5

I've tested @douggreen's patch 452828 on my client's site and it appears to be working.

#6

upon further testing i think the patch has only solved the problem when CamelCase freelinking is used but not when [[Double Bracket]] free linking is used.

#7

I think that the issue is not with the [[Wiki Link]] style perse, but rather with having spaces in the title, that get html encoded. The updated patch should fix this.

AttachmentSize
452828.patch 1.59 KB

#8

Version:6.x-3.0-alpha1» 6.x-1.8

This patch is not for version 3.

#9

Note that version 3 works "out of the box," since it doesn't use the freelinking/ namespace, but generates search.module-friendly links directly to node/(nid).

#10

My initial patch was for Freelinking 3, with some refinement it should be fine.

#11

Status:needs review» reviewed & tested by the community

@douggreen's patch in #7 works for me. I can now see backlinks info for [[Double Bracket]] style wiki pages with spaces in their names.

#12

Assigned to:Grayside» Anonymous

#13

Version:6.x-1.8» 6.x-1.x-dev
Status:reviewed & tested by the community» fixed

Please test the -dev version so the change can be released as part of Freelinking 1.9.

#14

Status:fixed» closed (fixed)

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

nobody click here