The Official PostNuke Installation & Getting Started Guide: Revision 9939 / Preview | ||
---|---|---|
Prev | Chapter 16. Advanced Website Configuration & Use | Next |
AutoLinks is a feature that, when Activated, generates web links related to the content on-the-fly in modules (for example, News or Sections) from text within the module (text in the article). By default, AutoLinks is not active and must be activated through Administration -> Modules.
For example, if you have AutoLinks turned on, "Beatles" defined as a Keyword, and "http://www.beatles.com" as the auto-link URL, PostNuke will automatically replace occurrences of "Beatles" within your articles with "<a href="http://www.beatles.com">Beatles</a>".
When AutoLinks are Activated, the option to Activate/Deactivate AutoLinks for particular modules will appear when editing modules (from Administration -> Modules -> List -> <module name>). Activate AutoLinks for the modules you wish, such as News. AutoLinks has a slight performance cost when activated.
Once AutoLinks have been activated, an AutoLinks link will appear in your Administration screen with the following options.
Add AutoLink: Enter the keyword in the Key (link) Word field. This is the text that will be matched in an article (for example, "beatles").
NOTE: Capitalization is not important in the Key (link) Word field.
Enter the title of the site in the Title field (for example, "The Beatles Site"). This is the name that will be displayed as a mouse-over and in the listing of all AutoLinks.
Enter the complete URL for the site in the URL field (for example, "http://www.beatles.com"). Make sure to enter "http://" at the beginning of the link if the site is external to your site; otherwise it will not function as expected.
If the URL is located on your web site, you can enter the path to the file or the complete URL. For example, if the file is on your site, you can enter "music.html" and AutoLinks will automatically prepend the "http://www.yoursite.com", resulting in an AutoLink of "http://www.yoursite.com/music.html". You could also enter "http://www.yoursite.com/music.html".
Finally, use the Comments field to enter optional free-form alphanumeric comments about the link. Comments are visable only to the site Administrator.
Click "Create AutoLink" to add the autolink to the database.
View AutoLinks: To view, edit, or delete AutoLinks, click the "View AutoLinks" link. All the AutoLinks in your database will be displayed sorted by Key (link) Word. If you wish to edit an AutoLink, click on the "Edit" link for that AutoLink. A page will be displayed where you can edit all the information about that particular link. Click "Update AutoLink" to save your changes.
To delete an AutoLink, click on the "Delete" link for that AutoLink. A page will be displayed asking you to confirm your request to delete the AutoLink. If you wish to delete the AutoLink, click "Confirm"; otherwise click "Cancel deletion of AutoLink" and the link will not be removed.
Modify AutoLinks Configuration: This section allows configuration of how AutoLinks appear on your site.
Only link each item once in each piece of text: If this option is checked, then only the FIRST occurrence of a matching Key (link) Word in the article will be changed into an AutoLink. If this option is unchecked, ALL occurrences of matching Key (link) Words in the article will be changed into AutoLinks.
For example, if your news article had the text:
"The Beatles are a band. The Beatles played music, and the Beatles were very good"
...and this function was CHECKED, it would become:
"The <a href="http://www.beatles.com">Beatles</a> are a band. The Beatles played music, and the Beatles were very good".
However, if the function was UNCHECKED, the text of the article would be changed to:
"The <a href="http://www.beatles.com">Beatles</a> are a band. The <a href="http://www.beatles.com">Beatles</a> played music, and the <a href="http://www.beatles.com">Beatles</a> were very good".
Remove decoration from AutoLinks: If you want your AutoLinks to be underlined in your news article, UNCHECK this option. If you do not want your AutoLinks underlined, CHECK this option.
TO ADD AUTOLINKS TO A SPECIFIC MODULE: Select the module(s) that you wish to use AutoLinks and "Edit" them. For example, Administrators may want the News module to feature AutoLinks. Go to Administration -> Modules -> Regenerate. Select "Edit" next to the News module. From the page that is displayed, check the box next to "Activate AutoLinks for this module" and click "Commit Changes" to save your changes. Repeat for any other modules that you wish to use AutoLinks.
Click "Update AutoLinks Configuration" to save changes.