Greetings,
I use a5w_include a lot and I am trying to get a handle on its pathing requirements.
I have a web project with the directory structure:
You will notice that the dialog 'LoginDialog' is repeated at the root project level and in the 'dialogs' directory. I would like to place the dialog in the 'dialogs' folder but when I drop it into an 'a5w' page, Alpha 5 says that it cannot find the dialog so I gave up and copied the 'LoginDialog' to the root project level.
The purpose of this message, however, is to try and find out what type of pathing works consistently with 'a5w_include'. I have tried both relative and absolute in order to get the file included and I found it is touch-and-go. As an example. Here is a part of the header page 'header_E_notable.a5w':
Notice the 'a5w_include' of 'logintest' which causes a 500 server error with the error message stating that it cannot find the 'logintest.a5w' file. In this particular call, I have tried both relative pathing and absolute and they both result in a 500 server error(not found).
The only way I got the above to work is to take the include of 'logintest' out of the header and put it at the top of the menu page and specify the path as relative.
I am kind of forming the impression that folders in the web project are not completly supported based on my attempts to implement a project structure and the consequences of this.
Your thoughts and comments are, as always, greatly appreciated.
Rick
I use a5w_include a lot and I am trying to get a handle on its pathing requirements.
I have a web project with the directory structure:
Code:
\ index.a5w logout.a5w LoginDialog.a5wcmp script logintest.a5w menu E main.a5w F main.a5w images bilingual_logo.jpg E logo.jpg F logo.jpg headersfooters header_bilingual.a5w header_E_notable.a5w header_F_notable.a5w dialogs LoginDialog.a5wcmp
The purpose of this message, however, is to try and find out what type of pathing works consistently with 'a5w_include'. I have tried both relative and absolute in order to get the file included and I found it is touch-and-go. As an example. Here is a part of the header page 'header_E_notable.a5w':
Code:
<%A5 ' re-assert English as the language just in case it was ' dynamically changed session.__protected__language = "E" ' ' make sure user is logged in a5w_include("../script/logintest.a5w") %> <body bgcolor="#ffffff" text="#000000"> <table cellSpacing="0" cellPadding="0" width="100%"> <tr height="120"> <td noWrap align="left"> <table height="140" cellSpacing="0" cellPadding="0" width="100%"> <tr vAlign="top" height="110"> <td width="210"> <P><IMG SRC="/images/E/logo.jpg" alt="logo" style="border-width:0px;height:75px;width:167px;"/>
The only way I got the above to work is to take the include of 'logintest' out of the header and put it at the top of the menu page and specify the path as relative.
I am kind of forming the impression that folders in the web project are not completly supported based on my attempts to implement a project structure and the consequences of this.
Your thoughts and comments are, as always, greatly appreciated.
Rick
Comment