summaryrefslogtreecommitdiff
path: root/view.php
AgeCommit message (Collapse)AuthorFilesLines
2026-05-31Remove assembly_id/component_id: use content_id throughoutLester Caine1-2/+2
All stock classes, templates, imports, and controllers now reference content_id directly. StockRemote deleted (unused). StockBase: dead methods (isMachineName, updatePosition, isEditable) removed; hash_key aliases dropped. getList() keyed by content_id, fixing missing content_id in row data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26Pretty URL /assembly/<content_id> and fix assembly lookup by content_idLester Caine1-3/+2
- assembly_lookup_inc: replace lookup() (broken with null content_type_guid) with direct StockAssembly(assembly_id, content_id) constructor + load() - view.php: check both assembly_id and content_id for 404; fix 'gallery'→'assembly' - getDisplayUrlFromHash: prefer content_id for pretty URL assembly/<content_id>, fall back to assembly_id query string Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26Add xref support, assembly/component views, and import toolingLester Caine1-10/+3
- add_xref.php, edit_xref.php: xref record add/edit for stock content types - admin xref group/source pages for stock_assembly and stock_component - assembly_views/: auto_flow, fixed_grid, position_number, simple_list layouts - Full assembly and component listing, tree, ordering, and detail pages - Import tooling (ImportAssembly, ImportComponent, load scripts) - liberty_plugins for assembly and component data types - schema_inc.php updated; StockAssembly, StockBase, StockComponent, StockMovement classes updated with xref group/item/multiple renames - Templates updated throughout for xref rename (source→item, group→x_group) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21Rename gallery→assembly, image→component throughout class SQL and PHPLester Caine1-2/+2
Table names: stock_gallery→stock_assembly, stock_image→stock_component, stock_gallery_image_map→stock_assembly_component_map. Column names: gallery_id→assembly_id, image_id→component_id, gallery_content_id→assembly_content_id. Properties: mGalleryId→mAssemblyId, mImageId→mComponentId, mGalleryPath→mAssemblyPath. Methods: loadImages→loadComponents, loadCurrentImage→loadCurrentComponent, getImageCount→getComponentCount, getParentGalleries→getParentAssemblies, etc. Sequences corrected to stock_assembly_id_seq / stock_component_id_seq. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21Initial stock package — forked from fisheyeLester Caine1-0/+54
StockAssembly (was FisheyeGallery), StockComponent (was FisheyeImage), StockBase (was FisheyeBase). All fisheye_ table prefixes and FISHEYE_ constants renamed to stock_/STOCK_. DB schema will need rework before install; this gives a non-clashing base to diverge from fisheye. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>