If I create a draggable view, and then export it. When I import the same view the draggable functionality no longer works.

The database tables are still getting updated, but the view is not being sorted into that order.

If I remove and then re add the sort field: Content: Draggable views weight it all starts working again.

As I prefer to store my views in code so they can be easily moved between sites, does anyone know a way to fix this behaviour so that the Content: Draggable views weight field exports and imports correctly.

Comments

ygerasimov’s picture

Category: bug » feature
Priority: Minor » Normal

Oh! That is brilliant idea! I think we should take a look at http://www.bariswanschers.com/blog/exporting-your-module-configuration-u... for building this functionality.

Moving this issue to feature request as it is not a bug.

Anonymous’s picture

This seems more like a bug than a feature request. It breaks compatibility with the features module, which means draggable views can't be used in features without explicitly modifying views after enabling the feature. It's a rather severe drawback to using this functionality over nodequeues.

bengt’s picture

The same thing seems to happen when you clone a view. The sorting start to work when you delete the sort field: Content: Draggable views weight and then add it again. Thanks medden for pointing this out!