I need to know which ID the Template Variable (TV) has, to put it into a form in the template.
Something like this:
<input type="text" value="[template_variable_id]" />
Does MODX Evo have some special tag for it, which can be used in templates?
I need to know which ID the Template Variable (TV) has, to put it into a form in the template.
Something like this:
<input type="text" value="[template_variable_id]" />
Does MODX Evo have some special tag for it, which can be used in templates?
Copyright © 2021 Jogjafile Inc.
That’s because $modx->resource is always the currently loaded document. If you’re calling a snippet, you need to pass in the current ID:
Snippet mySnippet