{"result":{"depiction_url":null,"edges":{"haspart":{"objects":[{"created":"2020-05-30T05:47:44Z","object_id":{"id":1618,"is_a":["text","documentation","developerguide"],"name":"doc_bestpractices_creating_sites","title":{"_type":"trans","tr":{"en":"Create your first site"}},"uri":"https:\/\/zotonic.com\/id\/1618"},"seq":1000000},{"created":"2020-05-30T05:47:44Z","object_id":{"id":1854,"is_a":["text","documentation","developerguide"],"name":"doc_bestpractices_media","title":{"_type":"trans","tr":{"en":"Display images with mediaclasses"}},"uri":"https:\/\/zotonic.com\/id\/1854"},"seq":1000000},{"created":"2020-05-30T05:47:44Z","object_id":{"id":1860,"is_a":["text","documentation","developerguide"],"name":"doc_bestpractices_templates","title":{"_type":"trans","tr":{"en":"Reuse markup with includes and categories"}},"uri":"https:\/\/zotonic.com\/id\/1860"},"seq":1000000}],"predicate":{"id":310,"is_a":["meta","predicate"],"name":"haspart","title":{"_type":"trans","tr":{"en":"Contains"}},"uri":"http:\/\/purl.org\/dc\/terms\/hasPart"}},"hasreference":{"objects":[{"created":"2026-10-07T11:13:38Z","object_id":{"id":1618,"is_a":["text","documentation","developerguide"],"name":"doc_bestpractices_creating_sites","title":{"_type":"trans","tr":{"en":"Create your first site"}},"uri":"https:\/\/zotonic.com\/id\/1618"},"seq":1},{"created":"2026-10-07T11:13:38Z","object_id":{"id":1860,"is_a":["text","documentation","developerguide"],"name":"doc_bestpractices_templates","title":{"_type":"trans","tr":{"en":"Reuse markup with includes and categories"}},"uri":"https:\/\/zotonic.com\/id\/1860"},"seq":2},{"created":"2026-10-07T11:13:38Z","object_id":{"id":1854,"is_a":["text","documentation","developerguide"],"name":"doc_bestpractices_media","title":{"_type":"trans","tr":{"en":"Display images with mediaclasses"}},"uri":"https:\/\/zotonic.com\/id\/1854"},"seq":3}],"predicate":{"id":2774,"is_a":["meta","predicate"],"name":"hasreference","title":{"_type":"trans","tr":{"en":"Documentation reference"}},"uri":"https:\/\/zotonic.com\/id\/hasreference"}},"subject":{"objects":[{"created":"2026-10-07T11:13:38Z","object_id":{"id":2556,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_explanation","title":"Explanation","uri":"https:\/\/zotonic.com\/id\/2556"},"seq":1},{"created":"2026-10-07T11:13:38Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-10-07T11:13:38Z","object_id":{"id":2613,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_development_and_debugging","title":"Development and debugging","uri":"https:\/\/zotonic.com\/id\/2613"},"seq":3}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1914,"is_a":["text","documentation","developerguide"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1914"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_bestpractices_index","page_url":{"en":"https:\/\/zotonic.com\/docs\/1914\/use-maintainable-zotonic-patterns","x-default":"https:\/\/zotonic.com\/docs\/1914\/use-maintainable-zotonic-patterns"},"preview_url":null,"resource":{"body":{"_type":"trans","tr":{"en":"<p>Build a small working site first, then add one capability at a time. Keep site-specific configuration in the site and reusable behaviour in a module. Use stable resource names in fixtures and import routines.<\/p>\n<p>Keep template components small, pass values explicitly, and use resource\/category selection instead of duplicating dispatch rules. Escape non-resource values in the correct output context. Render media through the image\/media pipeline and named mediaclasses.<\/p>\n<p>The connected tasks cover site creation, datamodel fixtures, template composition and media rendering. Test changes with the intended user&#39;s permissions and keep source separate from runtime files.<\/p>"}},"category_id":{"id":317,"is_a":["meta","category"],"name":"developerguide","title":"Developer guide","uri":"https:\/\/zotonic.com\/id\/developerguide"},"content_group_id":{"id":339,"is_a":["meta","content_group"],"name":"default_content_group","title":{"_type":"trans","tr":{"en":"Default Content Group"}},"uri":"https:\/\/zotonic.com\/id\/default_content_group"},"created":"2020-05-30T05:47:44Z","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"doc_editorial_bundle":true,"doc_editorial_edges":{"haspart":[],"hasreference":[1618,1854,1860],"subject":[2556,2564,2613]},"github_url":"https:\/\/github.com\/zotonic\/zotonic\/tree\/master\/doc\/best-practices\/index.rst","is_authoritative":true,"is_dependent":false,"is_featured":false,"is_protected":false,"is_published":true,"is_unfindable":false,"language":["en"],"modified":"2026-10-07T11:13:46Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"name":"doc_bestpractices_index","pivot_geocode":null,"pivot_location_lat":null,"pivot_location_lng":null,"privacy":0,"publication_end":"9999-06-01T00:00:00Z","publication_start":"2022-02-15T10:01:36Z","slug":"use-maintainable-zotonic-patterns","summary":{"_type":"trans","tr":{"en":"Start with a working site, reusable templates and the standard media pipeline."}},"title":{"_type":"trans","tr":{"en":"Use maintainable Zotonic patterns"}},"title_slug":{"_type":"trans","tr":{"en":"use-maintainable-zotonic-patterns"}},"tz":"UTC","uri":null,"version":33,"visible_for":0},"uri":"https:\/\/zotonic.com\/id\/1914","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1914"}},"status":"ok"}