E
E
eugene1592019-12-06 14:26:38
MODX
eugene159, 2019-12-06 14:26:38

What does this code mean in Modx? Is it a template?

The tpl.mFilter2.filter.checkbox chunk from the mSearch2 plugin at the very beginning contains the following code:
{var $key = $table ~ $delimeter ~ $filter}
What is it? Where can you read more about this? I wonder if it is possible to display content in this way depending on the value of the variable.
Here is the code for the chunk itself:

{var $key = $table ~ $delimeter ~ $filter}
<label for="mse2_{$key}_{$idx}" class="{$disabled}">
    <input type="checkbox" name="{$filter_key}" id="mse2_{$key}_{$idx}" value="{$value}" {$checked} {$disabled}/>
    <span>{$title}</span>&nbsp;<sup>{$num}</sup>
</label><br/>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Just_Andrew, 2019-12-06
@eugene159

this is a Fenom template engine documentation
content depending on the variable can be displayed.

S
Sanes, 2019-12-06
@Sanes

Adds a resource count to the header. It looks like these are filters from mSearch2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question