Using "If" conditional statement with an "Include" page

  • Thread starter Thread starter Don Goldberg
  • Start date Start date
D

Don Goldberg

I want to create a page that contains an "include" page based on a
conditional statement. In simple English the statement would be:

"If the current document page is located in a subfolder called 'other_files"
then include a page called 'list_o_files.htm' on this page."

Is it possible, and if so, does anyone have a good example of the syntax?

Thanks.
Don.
 
The following is using ASP, can not be done with the FP Include Page
component.

<% If location = 1 then %>
<!--- #INCLUDE FILE = "foldername/list_o_files.htm" --->
<% End If %>

Should be possible to use PHP as well.

Will require accessing the file system to determine a folder location, via
ASP, etc.
--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top