NID Plugin

Grayside - June 9, 2009 - 23:41
Project:freelinking
Version:6.x-3.0-alpha2
Component:Code
Category:feature request
Priority:normal
Assigned:Grayside
Status:closed
Description

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

#1

Grayside - June 10, 2009 - 03:26
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

Grayside - June 17, 2009 - 15:55

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

#3

eafarris - August 27, 2009 - 14:47
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

Grayside - September 1, 2009 - 05:04
Status:fixed» closed

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.

 
 

Drupal is a registered trademark of Dries Buytaert.