๐Ÿ“„ Content Detail

Last updated๏ผš2026-11-25

The unified approach for detail pages of the four system model types (articles / products / cases / single pages), as well as detail pages of custom content models created in the admin (model_detail.html).

โš ๏ธ Key Constraints (Must Read)

All fields on detail pages must carry the object prefix โ€” do not write .Title directly: - Article: {{.News.Title}} / {{.News.Content}} - Product: {{.Product.Title}} / {{.Product.Content}} - Case: {{.Case.Title}} / {{.Case.Content}} - Single page: {{.Page.Title}} / {{.Page.Content}} - Custom model: the unified object {{.Item.Title}} / {{.Item.Content}} (field names are determined by the admin model; see the dedicated section below)

For custom content models (created under the admin’s “Content Models”, tables model_xxx), the detail page does not distinguish type prefixes; all fields hang off .Item; its extended fields (e.g. certificate number, scope of application) are flattened as an ordered list under .Item.Ext (each item with .Label / .Value).

โš™๏ธ Links and titles are determined by admin configuration: the “external redirect URL” field on product / case detail pages uses {{.Product.Url}} / {{.Case.Url}} (note it is Url with a capital U, not URL; field names differ between detail and list pages, see the tables below); page

This site uses cookies for essential functionality and to improve your experience. See our Privacy Policy.