Weblink Module Usage

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: &#091weblink: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: &#091weblink: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, &#091weblink: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!

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <hr> <sup> <!-- --> <blockquote>
  • Lines and paragraphs break automatically.
  • You can use context links in the text to create context-related links to pages or sites that provide additional information about a word or phrase.
  • Glossary terms will be automatically marked with links to their descriptions
  • Web and e-mail addresses are automatically converted into links.
  • Textual smileys will be replaced with graphical ones.
  • Scripture references will be linked automatically to an online Bible. E.g. John 3:16, Eph 2:8-9 (ESV).
  • You may link to webpages through the weblinks registry
More information about formatting options