G
G
Ganjubas_Original2017-02-18 19:48:54
MODX
Ganjubas_Original, 2017-02-18 19:48:54

How in modx, when calling a snippet in a snippet, pass parameters from the outer snippet to the inner snippet?

There is a call


The problem is that when calling the For.Getresource snippet, I need to pass the "id" value from the "parent" snippet to test. I've tried &test = `id`, but apparently that doesn't work, because if I set the number to hard, as in the example above, then everything works as intended. So the id value is not passed. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question