A
A
Archer *range attack +10*2017-03-25 13:02:14
MODX
Archer *range attack +10*, 2017-03-25 13:02:14

How to set a default value for a snippet parameter if the snippet is called without a parameter?

For example, I have a snippet that should be called like this , and the user called the snippet like this . How to set the default parameter in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Kuklin, 2017-03-26
@kon-rafikov

The snippet has a "Settings" tab. There you create a param parameter and give it a default value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question