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

CommentFileSizeAuthor
freelinking_nid.inc_.txt1.14 KBGrayside

Comments

Grayside’s picture

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
Grayside’s picture

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

eafarris’s picture

Version: 6.x-3.0-alpha1 » 6.x-3.0-alpha2
Status: Needs work » Fixed

Added as part of alpha2. Please verify and close.

Grayside’s picture

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.