Include the contents of a text or html file in the current page at this point
Add block - Advanced - Advanced - Local file include
Select a text based file to include using the filebrowser
<div>
  <span style="color:yellow">This is a simple included file</span>
</div>
This is a simple included file
NOTE:Only the content between the
<body>...</body>
tags is included from HTML files

The rest is discarded
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>Test include</title>
    <span>This is NOT included as it is in the headers before the body tag</span>
  </head>
  <span>Nor this</span>
  <body>
    <span style="color:orange">Included content starts after the body tag</span><br />
    <div class="note">
      <span>This is an included html file</span><br />
      <span>Note that the content outside the body tags has been discarded</span><br />
    </div>  
    <span style="color:aqua">Included content ends before the /body tag</span>
  </body>
  <span>This is NOT included as it is after the /body tag</span>
</html>
Included content starts after the body tag
This is an included html file
Note that the content outside the body tags has been discarded
Included content ends before the /body tag
The basic include function as used above
The included files path is relative to the root directory
<xt:include file="/includes/html_page" />
Default must be declared first
This is mainly for includes that use xtgem "get" variables or are "printed" by xtscript
<xt:include default="/includes/default" file="/includes/no_such_file" />
This is the default file that gets included if the other one does not exist
To include a random file from a folder use /* instead of a file name at the end of the path
<xt:include file="/random_includes/*" />

This is the eleventh file

If you wish to use multiple random file includes you need to add another parameter/value pair
The name of the parameter and its value is not important it must be inserted before the file parameter and the value must be unique for each include or you will get the same file
<xt:include x="1" file="/random_includes/*" />

This is the tenth file

<xt:include x="2" file="/random_includes/*" />

This is the third file

reload