From 540855f1db33817500e76897a9d6ce7cc8a60937 Mon Sep 17 00:00:00 2001 From: Rinat Khaziev Date: Tue, 23 Apr 2013 00:17:24 -0500 Subject: [PATCH] Some notes --- readme.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 39d4823..edecde9 100644 --- a/readme.md +++ b/readme.md @@ -2,4 +2,26 @@ DropIt ====== ## Description -Drag and drop layout management framework for WordPress. Comes with a set of widgets aka "drops". \ No newline at end of file +Drag and drop layout management framework for WordPress. Comes with a set of widgets aka "drops". + + +## Implementation thoughts not to forget: + +For backbone.js model grab all the registered drops, parse their properties and serve as a collection. +Iterate through collection to set available options for a single droppable block ( @todo terminology? ). + +Possible options: ++ name: A name of the instance ( may be not) ++ type: One of the registered types (e.g. static, post, or a loop (pretty much anything wp_query can do ) ) (extendable with filters or by naming convention) ++ arguments: for post, it's post id, for loop( any valid wp_query argument that could be easily mapped to UI. Filters for others ) ++ content (if static). Probably WYSIWYG editor to put some basic stuff. + +Frontend: ++ A set of default templates for default drops. Not sure if it's reasonable to include any CSS. ++ Ability to set your own templates per drop. + +Backend Workflow: + +Some use cases: ++ User wants to add Drop It Zone on some taxonomy archive (add conditionals where should the zone be displayed ( e.g. is_category( 'Pancakes' ) ). UI/filters for it. ++ User is in the post edit screen, and wants to add a zone( UI that drops shortcode, pretty much like Media UI )