Project:freelinking
Version:6.x-3.0-alpha2
Component:Code
Category:feature request
Priority:normal
Assigned:Grayside
Status:closed (fixed)

Issue Summary

This plugin takes a reference such as [[nid:12]], [[n:12]], or [[node:12]], and creates a link to node/ using the node title as the link text.

I couldn't determine how to roll a new file as a patch, so here it is whole and entire. Just drop it into the freelinking/plugins directory minus the ".txt".

AttachmentSize
freelinking_nid.inc_.txt1.14 KB

Comments

#1

Status:needs review» needs work

Only the last freelink with any given string matching the indicator is actually replaced. The same text repeated twice for each indicator option presents:

[[n:14]]
Freelinking Settings
[[node:14]]
Freelinking Settings
[[nid:14]]
Freelinking Settings

#2

This problem is not unique to the nid plugin. Opening a new issue.

#3

Version:6.x-3.0-alpha1» 6.x-3.0-alpha2
Status:needs work» fixed

Added as part of alpha2. Please verify and close.

#4

Status:fixed» closed (fixed)

comment on line 6

// allows for a link like [[node:<nid>]], [[n:<nid>]], or [[node:<nid>]] to be expanded to

repeats node twice instead of specifying "nid" as an indicator.

I'm not sure if all three are really necessary. Otherwise, this works fine, marking closed.