You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original discussions in the above issues about allowing entries in multiple categories, there was some mention of creating a single file for products that come under a central brand (e.g. Google). I've been playing around with this idea, and I think the schema could be modified to support this without many changes to the existing codebase.
The join-entries.rb script could then be modified to expand a suite entry's sites into individual entries in the entries array, meaning the current code for the site would receive the data in the same way as it does now.
Something like:
This would make brands with multiple sites much easier to edit, as only one entry needs to be changed, rather than multiple. Additionally, adding a search key will allow the main brand name (e.g. Google) to be added to the search words in the table (making the connection between products clearer, fixing #4510).
The only other change to the code would be to get the API scripts to use _data/all.json which has the expanded suite sites array instead of iterating the entries directory as they do currently.
Any thoughts?
The text was updated successfully, but these errors were encountered:
Relates to #3708, #3707, #4510, #4034 (comment)
In the original discussions in the above issues about allowing entries in multiple categories, there was some mention of creating a single file for products that come under a central brand (e.g. Google). I've been playing around with this idea, and I think the schema could be modified to support this without many changes to the existing codebase.
Example JSON file for a suite entry:
The
join-entries.rb
script could then be modified to expand a suite entry's sites into individual entries in the entries array, meaning the current code for the site would receive the data in the same way as it does now.Something like:
This would make brands with multiple sites much easier to edit, as only one entry needs to be changed, rather than multiple. Additionally, adding a
search
key will allow the main brand name (e.g. Google) to be added to the search words in the table (making the connection between products clearer, fixing #4510).The only other change to the code would be to get the API scripts to use
_data/all.json
which has the expanded suite sites array instead of iterating the entries directory as they do currently.Any thoughts?
The text was updated successfully, but these errors were encountered: