Category:
Drupal Tips and Tricks
Knowledgebase Article:
Here is a page to test the Drupal Weblink Module.
To use this module, you first create a web link content item (Create Content => Weblink) and add the link to your list of web links. By filling out the fields (title, link, body), you're actually creating a "secret" or "hidden" node which will be used later. When you submit the weblink, look in the address line and remember the node id!
When you write the body of the text, simply type something like the following: [weblink:351], an opening bracket "[" followed by the word "weblink" and a colon, then the node id from the web link you just created and a closing bracket "]". This will create a nicely formatted link which pulls in the title and link of the weblink you created earlier (in my example here, it would be node id 351). If you want to override the original title, put in a vertical bar "|" right after the node id, type in your text before the closing bracket. Here's the same link above to the Weblink module from Drupal, but with the title replaced. In this case, the link in my code is: [weblink:351|Weblink module from Drupal].
There is one more option. If you have forgotten the node id, but have the destination URL, you can put it in instead of the node id. For example, [weblink:http://drupal.org/project/weblink] also shows the weblink module link: Drupal Weblink Module (but you still need to have previously created the weblink item with the URL so that it matches and shows the title).
Remember to enable the input filter in the administrator section!








