How to generate a custom filename
You can generate custom filenames for the SVG’s that are downloaded from a template. This is convenient because a user might want to download several versions of the project.
Instead of having a numbered list of files, the filenames can reflect the customization to keep things organized.
Here is how you can add this feature to your template:
- Go to the Editor and select the component with the Cut elements that the users will download.
- Add a new Component Parameter or Project Parameter named exactly
_filename(with an underscore at the beginning). - Type an expression like this one: `RoundTag - ${name}`Notice that this expression uses backticks and not quotation marks
You can type any descriptive text for the name of the file.
RoundTagin this example, and any existing parameter name you want to reference in this format:${name}.Note that in the example below we are referencing the parameter
name
It’s important that you type the name of the parameter exactly, as the expression is case sensitive.
In the following example we are using two parameters
nameOneandnameTwo: