Fill a page from a file
journal-page-from-fileWrite an HTML file from Foundry's data directory into a journal page, overwriting a page with pageId or adding a new page at the end.
Instructions
Write an HTML file that is already in Foundry's data directory into a page. The browser fetches the file from the Foundry server itself and nothing of it crosses the bridge, so any size works. With pageId that text page is overwritten (an unknown pageId is an error); without it a new text page is added at the end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file relative to the Foundry data directory, e.g. "Bilder/Kampagnen/kap2.html". | |
| pageId | No | Text page to overwrite. Omit to add a new page. | |
| pageName | No | Name of the new page; only used without pageId. Default: the file name. | |
| journalId | Yes | Id of the journal, from list-journals. |