Arlima
Arlima copied to clipboard
Grouping child articles via drag-and-drop
Feature description
In the list manager you should be able to drag child articles sideways to make them float, taking up about half of the space the child articles normally uses.
Arlima should also group these child articles in the same manner on the public website, when rendering a list.
Floating child articles should come in two. It should not be possible to save a list if it has a single floating child somewhere in the list.
Implementation
Here's some of the things we must take a look at inorder to implement this feature.
Arlima_List (backend) — Add the property "floating" to the option array in the article
Arlima_ListFactory (backend) — Add the property "floating" to the default options in createArticleData()
Arlima_TemplateObjectCreator — Add the class "floating" to the class property in the template object.
js/dev/ArlimaNestedSortable — Apply the necessary event listeners. Add a class to the list item when it should be floating. The article option floating should be removed when an article is moved from the "child state" to "default state"
js/dev/ArlimaArticle.js — Add the floating class to the article element in addArticle().
CSS — Add the styles necessary to make the child articles float when having the floating-class. Add some info in the change-log about that you must add these styles yourself if having a custom css file.
This would be an awesome feature to have. Right now using post formats in combination with custom templates to solve the same thing. Having this would make my life a lot easier. :)
:+1:
This is how it turned out
https://www.youtube.com/watch?v=QHYOIyizQt8&feature=youtu.be
Awesome, just awesome.
+1, brilliant!
tisdag 20 januari 2015 skrev Christoffer Larsson [email protected]:
Awesome, just awesome.
— Reply to this email directly or view it on GitHub https://github.com/victorjonsson/Arlima/issues/39#issuecomment-70622931.
Robert Sundelin VK Media AB Webbutvecklingschef [email protected] [email protected] 090-17 60 89 070-291 08 47 www.vk.se www.folkbladet.nu