2017-08-30 4 views
0

私はモデルを作成し、複数の製品を選択するために$ has_manyを追加しました。これは正常に動作していますが、選択した製品をドラッグ&ドロップでソート可能にできません。私はこれが可能であることを知っている私はそれを見た。しかし、私はこれを行う方法を示すドキュメントで何も見つけることができません。ここに私のモデルがあります:fuelCMS 1.4でソート可能なhas_manyセレクタドラッグアンドドロップを作成するにはどうすればよいですか?

答えて

0

私は非常に簡単です。これをフォームフィールドに追加しました。

// Makes the has many drag and drop sortable. 
    $fields['products']['sorting'] = TRUE; 
    $fields['products']['after_html'] = "<div style=\"clear:both;font-style:italic\">NOTE: you can sort selected product to your choosing by clicking on the product and then dragging it into the desired placement in the list</div>"; 
関連する問題