P
P
Plu2018-07-19 07:43:40
MODX
Plu, 2018-07-19 07:43:40

How to edit multitv parameter in modx evo?

The site in the modx evo engine has a parameter multitv
5b50165c6ee51249485153.png
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' => ','
);

I want to add a couple more fields to select how to do it? Can this be done from the admin panel or is it just adding fields to the table manually? I didn't find anything on the internet about this.

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