Voile.Task.Catalog.Collection (Voile v0.1.27)

Copy Markdown View Source

Task module for Collection-related business logic and data operations.

Summary

Functions

Get all nodes for the unit filter dropdown.

Load a collection with its items for the show page.

Load collections with filtering, pagination, and search functionality. Now filters by unit_id (node) instead of non-existent collection types.

Load items for a specific collection with pagination.

Functions

count_collections()

get_all_nodes()

Get all nodes for the unit filter dropdown.

load_collection_with_items(id, items_page \\ 1)

Load a collection with its items for the show page.

load_collections(page, search_query, filter_unit_id, filter_status, glam_type \\ "all", filter_media_type \\ "all", per_page \\ 12)

Load collections with filtering, pagination, and search functionality. Now filters by unit_id (node) instead of non-existent collection types.

load_items_for_collection(collection_id, page, per_page \\ 20)

Load items for a specific collection with pagination.