Php 模块预设帮助列表位置

Php 模块预设帮助列表位置,php,module,prestashop,prestashop-1.7,prestashop-helper-classes,Php,Module,Prestashop,Prestashop 1.7,Prestashop Helper Classes,我创建了我的模块,在创建列表表单时,我添加了“位置”列,如Prestashop文档中所示,但我没有出现拖放箭头,也没有拖放的可能性。Prestashop 1.7 if ($result = Db::getInstance()->executeS($sql)) { //Les champs à afficher $this->_defaultOrderBy = 'position'; $this->fields_list = arr

我创建了我的模块,在创建列表表单时,我添加了“位置”列,如Prestashop文档中所示,但我没有出现拖放箭头,也没有拖放的可能性。Prestashop 1.7

    if ($result = Db::getInstance()->executeS($sql)) {
    //Les champs à afficher
        $this->_defaultOrderBy = 'position';
        $this->fields_list = array(
         'id_slider' => array(
             'title' => 'ID',
             'width' => 'auto',
             'type' => 'text'
             ),
         'commentaire' => array(
             'title' => $this->l('commentaire'),
             'width' => 'auto',
             'type' => 'text'
           ),

           'link' => array(
               'title' => $this->l('link'),
               'width' => 'auto',
               'type' => 'text'
             ),
             'test' => array(
              'title' => $this->l('active'),
              'active' => 'test',
              'width' => 'auto',
              'type' => 'bool',
              'ajax' => true,
              'align' => 'center'
              ),
              'position' => array(
                'title' => $this->l('Ordem'),
                'filter_key' => 'a!position',
                'position' => 'position',
                'align' => 'center',
                'class' => 'fixed-width-md'
            ),
             'image' => array(
                 'title' => $this->l('image/video'),
                 'width' => 'auto',
                 'type' => 'text'
              ),
             'videocover' => array(
                 'title' => $this->l('image/video'),
                 'width' => 'auto',
                 'type' => 'text'
               ),
               'imagemobile' => array(
                   'title' => $this->l('image/video'),
                   'width' => 'auto',
                   'type' => 'text'
                 ),
                 'imagepng' => array(
                     'title' => $this->l('image/png'),
                     'width' => 'auto',
                     'type' => 'text'
                   ),
                 'imagepngmobile' => array(
                     'title' => $this->l('image/png'),
                     'width' => 'auto',
                     'type' => 'text'
                   )
         );
        $helper = new HelperList();
        $helper->shopLinkType = '';
        $helper->simple_header = false;
        $helper->identifier = 'id_slider';
        $helper->actions = array('edit', 'delete');
        $helper->show_toolbar = true;
        $helper->title = $this->displayName;
        $helper->table = $this->name;
        $helper->token = Tools::getAdminTokenLite('AdminModules');
        $helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
        $helper->toolbar_btn['new'] = array(
        'href' => AdminController::$currentIndex.'&configure='.$this->name.'&new='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules'),
        'desc' => $this->l('Nouveau slider')
     );
        return $helper->generateList($result, $this->fields_list);
    }

    return false;
}
我给大家举了一个例子,展示了我所期望的和我所拥有的。 我希望有埃尔斯·费尔奇在旁边

您需要添加以下内容:

$helper->position_identifier = 'position';
    $helper->orderBy = 'position';
    $helper->orderWay = 'asc';
您需要添加以下内容:

$helper->position_identifier = 'position';
    $helper->orderBy = 'position';
    $helper->orderWay = 'asc';