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
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
In the ahs-app database, the layout is isolated from the articles themselves. The layout is an ordered list of location objects. Each location object has an ordered list of category objects, which in turn hold article IDs. In addition, location and category objects have the properties "title" and "id": The titles are for display (e.g. "General Information") and ids for semi-permanent references (e.g. "General_Info").
Implementing the layout list will allow content editors to add, modify, and delete categories in real time.
Below is a pseudocode for generating the layout from the database.
database := app.database("ahs-app")
locations := database("layout")
snippets := database("snippets")
for each location in locations:
insert_in_app(location.title,location.id)
for each category in location.categories:
insert_in_location(location.id,category.title,category.id)
for each id in category.articleIDs:
snippet := snippets[id]
insert_in_category(category.id,snippet)
snippet.onclick:
article := database("articles/"+id)
show_article(article)
The text was updated successfully, but these errors were encountered:
In the ahs-app database, the layout is isolated from the articles themselves. The layout is an ordered list of location objects. Each location object has an ordered list of category objects, which in turn hold article IDs. In addition, location and category objects have the properties "title" and "id": The titles are for display (e.g. "General Information") and ids for semi-permanent references (e.g. "General_Info").
Implementing the layout list will allow content editors to add, modify, and delete categories in real time.
Below is a pseudocode for generating the layout from the database.
The text was updated successfully, but these errors were encountered: