The import_into_this_document function imports the content of a file into a document.


import_into_this_document( doc, filename specifier )


Argument Description
doc (LuaDocument) The document into which you want to import additional content.
filename specifier

(string) The content that you want to import into the document. You can specify:

  • the path of the file that you want to import.
  • the name of a document field that contains the file path.
  • the name of a document field that contains a URL.

Tip: If you need to specify proxy settings so that CFS can access the URL, set the configuration parameters ProxyHost, ProxyPort, ProxyUsername, and ProxyPassword in the [Default] section of the CFS configuration file.


Boolean. Returns true if the content was imported successfully.