I have a file where I'm using multiple record and it's in a subdirectory of the root (/cmsadmin). The behavior inserts an include at the top of the code for the database connection, and it also inserts an include to this file near the bottom of the code: /dwzMultipleRecord/MultipleRecord.asp.
The problem is - the include file the extension creates for these things is not mapped correctly. The relative path is wrong. I followed (exactly) the tutorial you have on your site for using it for updating records and I get this error when running it:
Active Server Pages error 'ASP 0130' Invalid File attribute /cmsAdmin/event-sliders.asp, line 2 File attribute '/Connections/hmgSQLconn.asp' cannot start with forward slash or back slash.
After looking at the code, I saw that the extension inserted a file include using an incorrect path. This is what the extension created for both the database connection and the link to the multiplerecord.asp file: <!--#include file="/Connections/hmgSQLconn.asp" --> <!--#include file="/dwzMultipleRecord/MultipleRecord.asp" -->
If these includes were virtual instead of file includes, it would work. My file where I am using this extension is located in the subdirectory /cmsadmin. So... if you were going to use a file include, they would need to be written like this: <!--#include file="../Connections/hmgSQLconn.asp" --> <!--#include file="../dwzMultipleRecord/MultipleRecord.asp" -->
This was easy to see a problem in the code generated by the extension, so I manually changed the paths so that they would be correct, and the extension works. The only problem is - every time you edit the settings for the multiple record, it wants to re-write the include files back to the wrong path. It would be great if the extension just created a correct path to the database connection and the multiplerecord.asp file so I didn't have to manually change it every time I update the extension on the page.
Thanks. |
|
|