victorjonsson / Arlima

Article List Manager - Wordpress plugin suitable for online newspapers that's in need of a fully customizable front page
28 stars 16 forks source link

Grouping child articles via drag-and-drop #39

Open victorjonsson opened 10 years ago

victorjonsson commented 10 years ago

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-feature

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.

chredd commented 10 years ago

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:

victorjonsson commented 9 years ago

This is how it turned out

https://www.youtube.com/watch?v=QHYOIyizQt8&feature=youtu.be

chredd commented 9 years ago

Awesome, just awesome.

znoid commented 9 years ago

+1, brilliant!

tisdag 20 januari 2015 skrev Christoffer Larsson notifications@github.com:

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 robert.sundelin@vkmedia.se robert.sundelin@vk.se 090-17 60 89 070-291 08 47 www.vk.se www.folkbladet.nu