CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>

Organizing with TOCs, Next/Prev Table of Contents PrintView CL1
<Previous> The Organization Library

Content-Linker Extensions <Next>


       

Organizing our Site with TOCs and Next/Prev buttons

Many sections (including this one) are big and require people to be able to

At the same time, we use it a couple dozen places at our site and we want no redundant code, just one library we call to get a universal look and feel. We went through several drafts to arrive at the following:

Get our standard header/footer with:

<!--#include virtual="/mutantheader.asp"-->

<!--#include virtual="/mutantfooter.asp"-->

They assume the directory name is used to derive a the name of a standard content linker file. If for example, the directory is: /whatever it assumes there is a whatever.toc file.

Here is the mutantheader.asp source code:
<Test Script Below>

<!--#include virtual="/library/tocwidgetheader.asp"-->

Here is the mutantfooter.asp source code:
<Test Script Below>

<!--#include virtual="/library/tocwidgetfooter.asp"-->

Including other pages in your section:

Of you include any page on the site, i.e. <!--#include virtual="/learn/dbtable.asp"-->

it will automatically adapt to its proper prev/next page content linker position.

Making a Table of Contents

<!--#include virtual="/mutanttoc.asp"-->
get a standard table of contents

Here is the mutanttoc.asp source code:
<Test Script Below>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title><%=tocname%> Table of Contents</title>
</head>

<body bgcolor="#FFFFFF">

<p><!--#include virtual="/library/tocheader.asp"--></p>

<p><strong><big><font face="Arial"><%=dirname%> Table of Contents</font></big></strong></p>

<p><%call TOCpretty(tocname)%></p>

<p><!--#include virtual="/library/tocfooter.asp"--></p>
</body>
</html>

Making a Section Table of Contents

<!--#include virtual="/mutantsection.asp"-->
get a standard table of contents

Here is the mutantsection.asp source code:
<Test Script Below>

<!--#include virtual="/library/tocsection.asp"-->

Organizing with TOCs, Next/Prev Table of Contents PrintView
<Previous> The Organization Library

Content-Linker Extensions <Next>

CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>