jenn5175
07-11-2002, 08:14 AM
Okay, not sure how to accomplish this. I am setting up a template for a website which includes a header, a left hand side menu, a right hand side fact sheet, content, and a footer. The header and footer will be the same for each page, but the left and right include files will depend on which section and which page respectivly (both will be used on multiple pages). I want this template to be as self sufficient as possible so my idea was to set 2 variables at the top of the page - sSection (which dictates which left hand menu to include) and iRightCol (to tell which fact page to show for this page). Here's how I intended to do it:
<%Dim sSection, iRightCol
sSection = "About"
iRightCol = 1
%>
<!-- code............ -->
<td><!-- #INCLUDE FILE = "includes/left<%=sSection%>.asp" --></td>
<td><!--content--></td>
<td><!-- #INCLUDE FILE = "includes/right<%=iRightCol%>.asp" --></td>
However, this isn't working (can't dynamically build include statement). So how can I get around it where the person using the template doesn't have to search around in the code to change things? I would love to just train someone to change the first 2 lines when adding a page to the site. Any ideas?
Jenn
<%Dim sSection, iRightCol
sSection = "About"
iRightCol = 1
%>
<!-- code............ -->
<td><!-- #INCLUDE FILE = "includes/left<%=sSection%>.asp" --></td>
<td><!--content--></td>
<td><!-- #INCLUDE FILE = "includes/right<%=iRightCol%>.asp" --></td>
However, this isn't working (can't dynamically build include statement). So how can I get around it where the person using the template doesn't have to search around in the code to change things? I would love to just train someone to change the first 2 lines when adding a page to the site. Any ideas?
Jenn