Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dglux5_wiki:workspace_and_workflow:projects_and_files:about_dg5 [2018/08/31 18:50]
dglux5_wiki:workspace_and_workflow:projects_and_files:about_dg5 [2021/09/20 14:51] (current)
Line 1: Line 1:
 +{{indexmenu_n>​7}}
 +====== DG5 Files ======
 +Pages in a DGLux5 project are saved as ''​.dg5''​ files. A ''​.dg5''​ file uses [[http://​www.json.org/​|JSON]] to store information about the page's [[dglux5_wiki:​dgscript:​home#​page_model|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:
 +  * <​WRAP>​Select **File** > **New File**.
 +
 +{{:​dglux5_wiki:​workspace_and_workflow:​dglux5_new_file_1.png?​direct|}}</​WRAP>​
 +
 +Alternatively,​ you can press Shift + N to create a new file.
 +
 +----
 +
 +===== Save a DG5 File =====
 +To save a file:
 +  - If you have multiple files open, make sure the file is selected in the tabs above the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​document_window|Document window]].
 +  - <​WRAP>​In the Main Menu, select **File** > **Save File**. Or, select **File** > **Save As** to create a new version.
 +
 +{{:​dglux5_wiki:​workspace_and_workflow:​dglux5_save_file_1.png?​direct|}}</​WRAP>​
 +
 +Alternatively,​ you can press Ctrl + S to save the currently open file.
 +
 +----
 +
 +===== Open a DG5 File =====
 +To open a ''​.dg5''​ file:
 +  - [[dglux5_wiki:​workspace_and_workflow:​projects_and_files:​open_project|Open the project]] that contains the file.
 +  - <​WRAP>​In the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​project_panel|Project panel]], double-click the file to open it.
 +
 +{{:​dglux5_wiki:​workspace_and_workflow:​dglux5_open_file.png?​direct|}}</​WRAP>​
 +
 +----
 +
 +===== Copy a DG5 File =====
 +To copy a ''​.dg5''​ file:
 +  - Select the ''​.dg5''​ file in the project panel.
 +  - <​WRAP>​Click {{:​dglux5_wiki:​89_icn-tool-menu.png?​nolink|}} **Menu**, and select {{:​dglux5_wiki:​59_icn-tool-copy.png?​nolink|}} **Copy**. ​
 +
 +{{:​dglux5_wiki:​workspace_and_workflow:​dglux5_copy_file_2.png?​direct|}}
 +
 +Alternatively,​ you can right-click the file and select {{:​dglux5_wiki:​59_icn-tool-copy.png?​nolink|}} **Copy**.</​WRAP>​
 +
 +----
 +
 +===== Paste a DG5 File =====
 +To paste a ''​.dg5''​ file:
 +  - Select a directory in the [[dglux5_wiki:​workspace_and_workflow:​panels_and_menus:​project_panel|Project panel]]. It can be the project'​s root directory.
 +  - <​WRAP>​Click {{:​dglux5_wiki:​89_icn-tool-menu.png?​nolink|}} **Menu**, and select {{:​dglux5_wiki:​58_icn-tool-paste.png?​nolink|}} **Paste**. ​
 +
 +{{:​dglux5_wiki:​workspace_and_workflow:​dglux5_copy_file_1.png?​direct|}}
 +
 +Alternatively,​ you can right-click the directory and select {{:​dglux5_wiki:​59_icn-tool-copy.png?​nolink|}} **Paste**.</​WRAP>​
 +
 +----
 +
 +===== Recover a DG5 File =====
 +
 +==== What is DG5 File Recovery? ====
 +
 +While working on a project in DGLux5 a file would be saved automatically without choosing **Save** menu item. If the file crashes or a complex design has to be reverted, you can access an auto-saved copy of the ''​.dg5''​ file.
 +
 +==== How does DG5 File Recovery work? ====
 +
 +There are some limitations on how ''​.dg5''​ files are automatically saved:
 +  * Recovery version only works for an active dashboard.
 +  * File is saved only when a user doesn'​t do any changes within 10 seconds interval.
 +  * Saved copy is stored in the browser'​s local storage. Local storage size and availability depends on the browser and user settings we can't control. There is no guarantee that available space in local storage is enough to save the entire dg5 file.
 +  * Recovery doesn'​t revert your last changes and doesn'​t save history. To revert changes on active dashboard use **Undo** command.
 +
 +There won't be a history of the file. Hence, you can't revert to a particular version of a file.
 +
 +To recover an old version of a ''​.dg5''​ file:
 +  - <​WRAP>​In the Main Menu, select **File** > **Recover**,​ and select the version you want to open.
 +
 +{{:​dglux5_wiki:​workspace_and_workflow:​dglux5_recover_file_1.png?​direct|}}</​WRAP>​
 +  - [[#​save_a_file|Save]] the file to your project.
 +
 +----
 +
 +<WRAP left>​[[dglux5_wiki:​workspace_and_workflow:​projects_and_files:​export_project|Previous:​ Export a Project]]</​WRAP>​
 +<WRAP right>​[[dglux5_wiki:​workspace_and_workflow:​projects_and_files:​import_dg5|Next:​ Export and Import a DG5 File]]</​WRAP>​