Creating a template - step by step instruction. LINK tag for attaching CSS sheets.To create the template go to the Template tab in the "Resource Panel on the left". If the panel is not visible, you can enable it in the Display menu. Another way is to use the keyboard shortcut (F9 by default), or use the "Display or hide the resource panel on the left" icon on the main toolbar. You can also open and go directly to the Templates tab using the keyboard shortcut Ctrl+4 In the Templates tab, select (or create) a category in which to place the new template. Grouping templates into categories allows you to keep your templates organized. Then click the "Add new template" icon. PreparationsBefore proceeding, it is a good idea to think about what the template will do. This will allow you to prepare it optimally. In this case, the assumptions will be as follows:
After opening the Template Editor, choose a name for it. In this case, the best one would be "LINK - attach CSS" The template type can remain the default - "Just template". Create a tag skeletonIt is most convenient to create the tag skeleton in the editor using the appropriate Spider tools for each tag. However, for an example as simple as the template currently being created, you can type the content manually. In the "Left part of the template", type the following: At the moment, the path to the file with CSS sheets is not defined yet. To specify it, a variable of the "Link to documents" type will be used. Specifying the path to a CSS file using the variableTo create a variable, click on the "Add New Variable" icon in the menu above the template content editing window.
Once a variable is created, it will appear in the list of variables. To insert it into the macro code content, place the cursor between the quotes of the href attribute value and click the "Insert selected variable" icon. At this time, the template should be in the form of: Now you can close the window with the OK button - the template is ready!You will be able to use the template using the options:
|
Related topics |