The modelsPresentation of the models areaTemplates are an area on the left of the window, just under the word 'templates'.
There are 4 types of lines in the model area. A symbol at the start of the line announces the type of each line:
In fact, there is a fifth type of model. If you go into some template pages, you will find that a form automatically appears at the top of the window. It is then called a tool model. We use this to provide automatic processing tools for the content of the page. For example a tool that will pre-sort the emails that are there, or will automatically produce the invoice for the following month by automatic adaptation of the invoice in the page, etc. Set up, modify the models areaAccess the pages defining the models areaThe content of the templates area is defined by a tree structure of Storga pages, just like the rest of the site. Simply, the blocks in the pages are not interpreted in the same way.
Create a template fileHere is an example of a model providing a contact card: Here is now its view in 'Organize' mode with 'Detailed' option: We see that the file has simply been encapsulated in a 'Model' block. Warning: if you cannot find the yellow bar to drag the file into it, you forgot to activate the 'Detailed' option of the 'Organize' mode Note: generally we encapsulate a form, but in fact, we can encapsulate any template. We can very well encapsulate a polite formula for standard letters, a header, etc. Create a link or a sub page in the model treeSwitch to the model tree, as explained above, then create the link or subpage just as you would in a standard tree page. Create a tool templateThe form that contains the program will be encapsulated in a model block, exactly as for an empty form, but the 'Insertion mode' field of the model block will be set to 'This is a tool (displayed in the window above)' Automatic update of recordsIn the previous contact model, if the contextual menu corresponding to the form floor is displayed: And if we ask for the 'Properties', we get the following list of parameters: Note that the 'Automatic update' field has been filled in with exactly the same code as what is displayed on the 'Reference to form' line The meaning is as follows: Note: to copy paste the form code, you can press the control key on the keyboard, then click at the top left of the area to copy, drag without releasing either the control key or the mouse button, all the way to the bottom to the right of the area to copy, then release the mouse button. The content will be copied to the clipboard. Then, all you have to do is click in the 'Automatic update' field and then press the 'Insert' key to paste. |