I know this is probably a dumb question, but here goes.

In the Filtered HTML I can easily express a link to an image - [image:node_id]or a weblink, - [weblink:link_id] already existing on the site. But to link to another node, the only way I can figure is to put in the HTML code for the link, which is extremely cumbersome. Is there some simple way that I am missing of expressing the link by referring to the node number or title?

I tried wiki filter and it doesn't do anything for the above and messes up existing documents. I dont want to use HTMLarea as it is too cumbersome for my viewers, and TinyMice is not available in 4.5 ( I probably want to avoid it anyway)

Can anyone direct me to a solution for the above. If it is in the docs I cant find it

Thanks!

Davec

www.forestlake.ca

Comments

pobster’s picture

attached_node? Is that what you're after? [node:id] brings up a teaser of the node in question. Or do you mean you want a href type link where you click on it? Inline module perhaps?

Pobster

davec611’s picture

Pobster,
Your second guess is correct. I am looking for a simple reference which will translate into a link to the node in question. Inline module seems too only reference uploads to a node.

Anyway thanks for giving it a shot. It seems like an obvious addition to the other reference capabilities I mentioned above

Davec

Forest Lake Online

pobster’s picture

Well, apparently attached_node *is* what you're after... Not that I can do it on mine (mine isn't the CVS, it's the 4.6 version) but you're allowed to set parameters for your tag. So... (as far as I can tell) you can write:

[node:123,"title"]

Which will display just the title of your node in question. I have absolutely no idea whether it'll be a link or not although I assume so.

I could probably write a snazzy bit of php code to do what you want (if the above doesn't work) but its a bit of a waste of time I feel as a simple <a href="node/123"> does the same thing!

Pobster
PS. I'm not sure that I've read that description correctly... But anyways if not (!) then this is exactly what you're after:

http://drupal.org/node/16261

davec611’s picture

OK, I will try that out. And you are right that if I use relative addressing it should be a simple link, although when you add 'target', and a title it starts to get cumbersome. I am dealing with an audience that really is not into html, so I am looking for simpler ways.

Davec

Forest Lake Online

davec611’s picture

Pobster,

OK, I tried it and unfortunately, the module embeds the whole node. (and links to it via the title.) I can see no way to just allow the title to show and keep the rest of the node from embedding.

Any ideas?

Davec

Forest Lake Online

sepeck’s picture

close, not quite, but maybe
http://drupal.org/project/interwiki
You could make a filter for your site. You would have to add the title yourself, but references and links are handled smoothly.

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

davec611’s picture

Thanks Sepeck,

That did the trick after I figured it out....and all that wiki stuff to play with as a bonus!

Actually you dont even have to create an entry for your own website. [:localpath] will take you anywhere on your site, and[:localpath|label] will give you, well...a label for the link.

Cool!

Davec

Forest Lake Online