jgentes / startupcommunity

StartupCommunity.org
1 stars 0 forks source link

Allow Networks to be associated with multiple 'types' #3

Closed jgentes closed 8 years ago

jgentes commented 8 years ago

Today a network can only be associated with a single 'type', which is captured as an array of 'parents' today. Here's an example of a network entry in the database:

{ "type" : "network", "parents" : [], "profile" : { "name" : "BendTECH", "icon" : "fa-circle-o", "logo" : "", "home" : "bend-or", "description" : "A coworking space for tech companies in Bend, Oregon.", "embed" : [{ "url" : "bendtech.com" }, { "url" : "testing.com", "color" : "#ccc" }], "parents" : [] }, "communities" : ["bend-or"], "community_profiles" : { "bend-or" : { "parents" : ["coworking"], "name" : "BendTECH", "icon" : "fa-circle-o", "logo" : "" } }}

The 'community_profiles' section is used because the same network name may exist in multiple cities and can have different profile properties in each city.

The nav.edit_network.html page would need to be modified to allow for selecting multiple parents, and the controller would need to support it as well.

Then, in the new 'Networks' page, if a network is associated with multiple parents (ie. 'Accelerators' and 'Coworking Spaces') then it should be displayed multiple times, once per category.

avmi commented 8 years ago

Implemented, PR #5