This is an old revision of the document!


DG5 Files

Pages in a DGLux5 project are saved as .dg5 files. A .dg5 file uses JSON to store information about the page's model and content.


index.dg5

By default, every DGLux5 project has an index.dg5 file. You can use index.dg5 as the home page for your project. By default, index.dg5 is loaded when the user goes to the URL for the project.


Create a New DG5 File

To create a new .dg5 file in the currently open project:

  • Select File > New File.

Alternatively, you can press Shift + N to create a new file.


Save a DG5 File

To save a file:

  1. If you have multiple files open, make sure the file is selected in the tabs above the Document window.
  2. In the Main Menu, select File > Save File. Or, select File > Save As to create a new version.

Alternatively, you can press Ctrl + S to save the currently open file.


Open a DG5 File

To open a .dg5 file:

  1. Open the project that contains the file.
  2. In the Project panel, double-click the file to open it.


Copy a DG5 File

To copy a .dg5 file:

  1. Select the .dg5 file in the project panel.
  2. Click Menu, and select Copy.

    Alternatively, you can right-click the file and select Copy.


Paste a DG5 File

To paste a .dg5 file:

  1. Select a directory in the Project panel. It can be the project's root directory.
  2. Click Menu, and select Paste.

    Alternatively, you can right-click the directory and select Paste.


Recover a DG5 File

To recover an old version of a .dg5 file:

  1. In the Main Menu, select File > Recover, and select the version you want to open.

  2. Save the file to your project.