
Site reports 251
You create this extension by performing the following steps:
■ Creating the report definition
■ Writing the JavaScript code
This example creates two files in the HTML Reports folder: List images.htm, which contains
the report definition, and List Images.js, which contains the JavaScript code specific to this
report. In addition, you reference the Reports.js file, which is included with Dreamweaver.
Creating the report definition
The report definition specifies the name of the report as it appears in the Reports dialog box,
calls any JavaScript files required, and defines the user interface of the Settings dialog box, if
needed.
To create the report definition:
1. Create the file Configuration/Reports/HTML Reports/List images.htm.
2. Add the following to specify the name of the report that you want to appear in the Reports
dialog box in the title of the HTML page.
<html>
<head>
<title>List Images</title>
3.
At the end of the file, add the script tag and specify the Reports.js file in the src attribute.
<script src="../Reports.js"></script>
4.
At the end of the file, add another script tag and specify the List Images.js file, which you
will create next, in the
src attribute.
<html>
<head>
<title>List Images</title>
<script src="../Reports.js"></script>
<script src="List Images.js"></script>
5.
Close the head tag, include opening and closing body tags, and close the html tag.
</head>
<body>
</body>
</html>
6.
Save the file as List images in the Configuration/Reports/HTML Reports folder.
Kommentare zu diesen Handbüchern