Template Editor - Macro Variables tab

Template variables store values that will be used when inserting macro code into a document, as well as when creating a macro code preview.

The window in the Variables tab of the macro is divided into two parts - the Variables inspector and the menu.

Template Variable Inspector.
Using the inspector, you can assign a variable the default value it will have when working with the finished template.

The bullet next to the variable name tells you:

- variable will be hidden,
- variable will not be hidden

Adding a new variable
Click if you want to add a new variable. Use the Edit Template Variable window to create new variables and edit existing variables.

Rename selected variable
Click if you want to change the name of the selected variable.

Hide or unhide the selected variable
Click if you want to hide / unhide the selected variable. A variable marked as hidden (red ball next to its name) will not appear in the variable inspector in the left pane of the main Spider window. Thanks to this, only those variables whose value should be able to be changed will be available to the user in the inspector. Of course, variables marked as hidden will still be visible in the variable inspector in the "Variables in template" tab.

For example - if you create a page template and include graphics that need to be on the page, the user should not be able to change the path to those graphics (because they could provide a path to another file, which would ruin the effect).

Modification of a variable
Click if you want to edit a variable (change the variable type, but also the name, default value, or hide it). Use the Edit Template Variable window to create new variables and edit existing variables.

Deleting the selected variable
Click if you want to delete the selected variable. Deleting a variable does not remove its calls from the macro code - this must be done manually. If you do not remove them, when you save the macro code, Spider asks you whether to do it automatically.

Deleting all variables
Click if you want to delete all variables. Deleting variables does not remove their calls from the macro code - you must do this manually. If you do not remove them, when you save the macro, Spider will ask you whether to do it automatically.

Move item up/down
Click to move the variable up/down in the variable inspector.

Related topics

To top