TennisConnect Support Portal
Language
 
Home>Knowledge Base>Enhanced Technical>Navigation links to open a unique page or document
Information
Article ID36
Created On10/6/2009
Modified1/10/2010
Share With Others
Navigation links to open a unique page or document
When you add a new web page
TennisConnect will automatically add it to the system generated menus unless you Hide the page.  If you are using enhanced navigation you are probably hiding all of your pages and need to consult with the developer or ASP who built your custom navigation.

If you want to establish a menu item (in the system generated menus) that goes to an "off-site" link, you have 2 options:

1)  Redirect using JavaScript

To create a menu item that redirects to a specific URL, create the page using the TennisConnect Web Site Builder.  Name the link that you want to appear in your system generated menus.

Place the following source code in the editor window (using source code mode):
<script type="text/javascript">
<!--
window.location = "http://www.yourdestination.com" //-->
</script>

Example: visit www.mytenniscenter.us and click on the "Open PDF Direct" link (sixth link down as of the time of this writing)

2)  Open PDF or Page "in line" on a web page (Please note that different web browsers and plug-ins will behave differently)
Alternately you may want to open a PDF directly in a page from the navigation links.  Use an iframe to accomplish this.  Create the page using the TennisConnect Web Site Builder.  Name the link that you want to appear in your system generated menus.

Place the following source code in the editor window (using source code mode) replacing the underlined URL with your URL:
<p><iframe frameborder="0" align="middle" width="100%" src="http://www.tcrdemo.com/pages/sctcrdemo/pdfs/prince_free_bag_promo.pdf" style="width: 100%; height: 500px;"></iframe></p>

Example:  visit www.mytenniscenter.us and click on the "Prince PDF" lnk in the left hand menu area.

Note: IE 7 & 8 open the PDF correctly "in-line", while FireFox will sometimes open the document in a new window.