Reusing Content with Templates and Libraries > Using server-side includes > Editing the contents of a server-side include |
Editing the contents of a server-side include
Like library items, server-side includes are selected as a whole unit in the Document window. Unlike library items, for server-side includes the HTML source code contained in the included file does not appear in the Code inspector or the Code view of the Document window. Instead, the actual server instruction appears, looking (for example) like this:
<!--#include virtual="/uber/html/footer.html" -->
To edit the content associated with the included file, you must open the file.
Note: Server-side includes cannot contain head
or body
tags.
To edit a server-side include:
1 | Select the server-side include in either the Document window or the Code inspector, and click Edit in the Property inspector. |
The included file opens in a new Document window. | |
2 | Edit the file; then save it. |
The changes are immediately reflected in the current document and in any subsequent document you open that includes the file. | |