ID | Created On | Name | Categories |
---|---|---|---|
f4eec426376de3f14ce69134a071ca9d | 2024-11-25 | apple | fruits things |
eeb36f88befbf41b8b6461b500f53d99 | 2024-11-25 | banana | fruits things |
8dd2d710c64544c6852d65c8b4e4b45a | 2024-11-25 | cat | animals things |
37e907c1a18af161bf5622aef140feee | 2024-11-25 | dog | animals things |
<# start list for items; relate id to item_categorizations.item_id; relate item_categorizations.category_id to categories.id; include when categories.name in "<#[url.filter]#>" if set; sort by items.name, items.id; #> <# start header #> <table class="table table-striped table-hover"> <thead> <tr> <th>ID</th> <th>Created On</th> <th>Name</th> <th>Categories</th> </tr> </thead> <# end header #> <# start row #> <tr> <td title="<# id #>"><span class="truncated monospace"><# id #></span></td> <td><# created_on as date "Y-M-D" #></td> <td><# name as html #></td> <td><# start row loop for items.id; #> <span class="label label-success"><# categories.name as html #></span> <# end loop #> </td> </tr> <# end row #> <# start footer #> </table> <# end footer #> <# no results #> <h4 class="alert alert-warning text-center">No Items Found</h4> <# end no results #> <# end list #>
The Categories Mini-App uses the Hashtag Markup Language to demonstrate a method of categorizing items.
Categories, Items, and Item Categorization records are all stored in an SQL Database.
Search filters are demonstrated to only List Items that have been Categorized to match any value from a comma separated list.