International Sites:





/ PORTUNITY.INFO /


Linking Articles & Categories

At times one needs a link to an article or to a category. Of course you could simply include the URL shown in the browser per clipboard into the source code. But there is a more elegant way to set links on articles or categories.

In the following example we show, how to set a text link for each article onto a contact article:


Template article text:

{TemplateInclude name="HTMLHead"}
          <table border=1><tr><td valign=top>
                <? PrintCategoryTree (); ?>
          </td><td valign=top>
                <? PrintArticle (); ?>
                <hr>
                <a href=<? PrintLink ("", "Contact"); ?>>
                     Contact
                </a>
          </td></tr></table>
     </body>
</html>



As you can see, we used the normal HTML link tag to set the link onto the article. The „trick“ is the nesting of the normal HTML link tags with a template function named „PrintLink“. „PrintLink“ outputs a category’s or an article’s URL, whereby the first parameter is a category and the second parameter is the headline of an article. If you link onto an article the first parameter can simply be passed empty.


Continue to recommend this article:

Your Name:

Your eMail-Adress:

eMail of Recipient:

Additional text:







Direct links to the new Portalsuite 2002:

- Productinfos
- Download

- Support overview
- Support forum