Answer the question
In order to leave comments, you need to log in
How to edit multitv parameter in modx evo?
The site in the modx evo engine has a parameter multitv
Which allows you to select the fields that are displayed on the site.
The add-list-params.config.inc.php file has the following code:
<?php
$settings['display'] = 'vertical';
$settings['fields'] = array(
'key' => array(
'caption' => 'Наименование товара',
'type' => 'dropdown',
'elements' => '@SELECT pagetitle, id FROM [+PREFIX+]site_content WHERE published=1 AND deleted=0 AND parent=85 ORDER BY pagetitle,id ASC'
),
'value' => array(
'caption' => 'Значение параметра',
'type' => 'text',
'width' => '580'
)
);
$settings['templates'] = array(
'outerTpl' => '[+wrapper+]',
'rowTpl' => '
[+value:ne:``:then=`
<tr>
<td></td>
<td>[+value:htmlentities+]</td>
</tr>
`+]'
);
$settings['configuration'] = array(
'enablePaste' => TRUE,
'enableClear' => FALSE,
'csvseparator' => ','
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question