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 |
Jump to:
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".
| Attachment | Size |
|---|---|
| freelinking_nid.inc_.txt | 1.14 KB |

#1
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
Added as part of alpha2. Please verify and close.
#4
comment on line 6
// allows for a link like [[node:<nid>]], [[n:<nid>]], or [[node:<nid>]] to be expanded torepeats 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.