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

Grayside’s picture

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

Grayside’s picture

Assigned: Unassigned » Grayside
StatusFileSize
new875 bytes

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.

Grayside’s picture

Status: Active » Needs review

Forgot this. Sorry for the triple post.

douggreen’s picture

StatusFileSize
new1.19 KB

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.

GregoryHeller’s picture

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

GregoryHeller’s picture

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.

douggreen’s picture

StatusFileSize
new1.59 KB

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.

eafarris’s picture

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

This patch is not for version 3.

eafarris’s picture

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).

Grayside’s picture

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

GregoryHeller’s picture

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.

Grayside’s picture

Assigned: Grayside » Unassigned
Grayside’s picture

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.

Status: Fixed » Closed (fixed)

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