Version 8 (modified by jim, 3 years ago) (diff) |
---|
IIRS Solution Design
Please refer to the IIRS/ArchitectureOptions and principles therein.
Features overview
The IIRS will be an add-on service with its own Drupal 7 install. This install will provide the means to:
- Initiatives: A slimline Initiative content type, related views and maps etc that are synced with TN.org D6.
- Users: Allow users to log in (to their accounts on the current D6 site), or register (with the new account synced back from D7 to D6).
- Widget: Add, Edit (with correct perms), list/map initiatives and view single initiatives via a widget.
- Sync: post-moderated (pre-accepted) D7 initiatives back to TN.org D6 via a web service, AND from D6 to D7 as edits happen there.
- Hub: Store 'National Hub profiles' that facilitate the translation and syncing of the UI and data.
Drupal 6 site changes
- New content type: "Transition Hub" - represents the key information about the hub and widgets that will provide content in that language. Has language, country, translated intro text, points of contact, and remote (D7) path for services.
- New Panels layout for "Transition Hub" content type: Shows key (translated) text in panels layout, below which is a full-page widget showing lists and maps of Initiatives, with the option to view them IN A POPUP in the Hub language. This panel should ideally pre-display the widget using variables from the Hub profile.
- Services for syncing user accounts, Transition Hub and Initiative profiles nodes automatically on edit, delete (unpublish) and 'provision' to get the D7 site the content it needs.
Drupal 7 site features
Distribution, Profile, Frameworks
- Based on Panopoly for an excellent editorial experience out of the box. There is a lot of momentum around Panopoly in the Drupal world.
- Theme based on Twitter's Bootstrap (v2.3.2) framework for a cross-browser, responsive, clean and deeply sexy starting point. There's loads of good resources and tools on the web for Bootstrap.
- Lots of Drupal themes integrate with Bootstrap, but Radix is also gaining a lot of traction with distributions and works great with Panopoly, Open Atrium, Open Outreach and others.
- [Debut will provide as much base features as possible, to minimise custom code and get a fast start on key features. For now these are not needed for content types, but standardising around other features will make future development and integration with other Drupal sites easier. Recommended for consideration: Membership, Location, Social, WYSIWYG
- Will create a 'Transition National Hub' Drupal install profile to allow this site to be built easily on the Transition Network server, and indeed on other interested parties systems.
Transition-specific custom Features & modules
@todo convert to table and list if each is able to be re-used for D6, D7 IIRS or D7 TN.org @todo create a diagram to show what features sit where, and what depends on what...
- Transition Network Core - D7 - variables in feature wrapping all shared dependencies and extras needed to make the site(s) tick.
- Transition Initiatives - D7 - a feature wrapping up a content type, some simple list-style views (user-facing and admin) and panels panes.
- Transition Initiatives Widget - D7 - a module providing the widget (converted from the D6 PSE project).
- Transition Hub - D6 & D7 - anything specific to national hubs goes here. Each 'Hub' content represents a national hub and has language(s), name, country, website and other data. D6 version provides content type, plus 'country homepage' with translated text and widget embedded panels view. D7 provides content type (and others feature TBC).
- Transition Users - D7 - a feature wrapping up a basic user account, plus some views (users-facing and admin). Need to decide if this is core D7 accounts, or needs Profile2 etc. Ideally would handle social login/register too.
- Transition * Services - D6 & D7 - (where * is 'intuitive', 'user' etc.) - a feature for each core piece of data that contains relevant services including CRUD, views/lists and probably authentication.
- Transition Network Sync - D6 & D7 - a module that uses pluggable services (in the above point; for initiatives, users, projects, hubs etc etc) to sync data back to the 'hub' D6 TN.org site.
Widget-related custom modules
The widget is to be a more flexible evolution of the work started in Sharing_Engine/Technical_Proposal Project Sharing Engine?. The plan is to build on this base but turn the it into a clear, clean model based on a set of components that can be added, extended and re-used. Since Drupal 7 is not MVC, and neither is Drupal 8, the proposal is to use the CTools Plugin architecture (example here) to allow new Widget components to be added/enabled over time.
Widget components
- Transition Widgets Core --- a module that holds all the shared variables, admin, functions, permissions and other logic that will drive all widgets and facilitate the rest of the components.
- Builder -- this is the UI module that will allow a user (with permission) to chose the type of widget, Context (see below) Purpose and style of a Widget and build an instance. The module will take these options and create a 'Widget Instance' (see below) before generating the themed, styled Widget Chrome (below) for a user to paste into their website.
- Chrome -- the 'Widget Chrome' is this is the actual HTML and related CSS/JS, built by the Widget Builder (above), that a user cut/pastes into their site in order to display the widget. It's held on the client site and runs via whatever tech drives it (iFrames to start, web services & backbone maybe one day). The chrome used depends the user's choice of Type (Full screen, sidebar, button options etc), Style (css, colours etc - not planned to be editable initially), and Framework (iFrame for now, later other options might become available).
- Settings -- When user builds a widget, the relevant context and purpose will be stored in a Drupal entity called Widget Recipe. This then allows a user to re-generate the widget with different styles/types using this instance.
Web services
@todo see what the Services module does out the box. Note also D6 Services module is hamstrung by https://drupal.org/node/2014573.
Services include:
- Entity sync for: Users, plus each content type we want to send to/from D6/7.
- A login/authentication service.
- Ideally make these resilient with a Queue.