刚开始安装上views没弄明白怎么回事,其思路没有领会,也没什么好印象,不过据说这是非常有用三大模块之一,后来,在自己定制页面显示的需求下,又再次have a try,初步领会和接受了views 其思路是:添加字段,建立过滤/排序条件,定义显示方式 同一类型可建立多个页面,设置有些地方如果不让所有页面都一致采用默认的,需要override 在这期间接触到了一个实现拖动效果的DraggableViews,该模块是增加了一种字段类型,要首先添加它提供的order字段,然后必须在排序方式中定义按照order排序,实现了自定义拖动显示
..makes views draggable
The DraggableViews module can be used to organize simple lists and complex structures via drag n’ drop. The configuration is quite easy as you just have to access the style-plugin settings.
If you want it QUICK
- Navigate to the edit-page of an existing view.
- Add the field “Draggableviews: Order” at the Fields section.
- Now change the Style-plugin at the Basic settings section to Draggable Table and enter the Style plugin settings.
- Scroll down to the Draggable Table settings and choose the Order field you added just before. Choose “Native” handler.
- Save the settings. You’ll be prompted to sort the view by the Order field. Save the view and you’re done.