{"id":1513,"date":"2020-06-12T10:02:46","date_gmt":"2020-06-12T10:02:46","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/project-hygiene\/layouts-should-be-prefixed-properly\/"},"modified":"2022-06-15T06:52:34","modified_gmt":"2022-06-15T06:52:34","slug":"layoutprefix","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/project-hygiene\/layoutprefix","title":{"rendered":"Layouts should be prefixed properly"},"content":{"rendered":"\n<p> Introduced in version 1.11 (29 June 2020) <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p> It is a good idea to prefix layouts with a short string Lay_ .<br> This makes it much easier to find all (custom) layouts in your project. <\/p>\n\n\n\n<p><strong>Non-compliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"173\" height=\"43\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/06\/non-compliant_layout_prefix.jpg\" alt=\"\" class=\"wp-image-1515\"\/><\/figure>\n\n\n\n<p><strong>Compliant example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"159\" height=\"66\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/06\/compliant_layout_prefix.jpg\" alt=\"\" class=\"wp-image-1516\"\/><\/figure>\n\n\n\n<p>You can fix this violation by renaming your layout with prefix <strong>Lay_<\/strong><\/p>\n","protected":false},"featured_media":0,"parent":100,"menu_order":19,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1513","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1513"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1513"}],"version-history":[{"count":1,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1513\/revisions"}],"predecessor-version":[{"id":1517,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1513\/revisions\/1517"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/100"}],"next":[{"title":"Microflows called from pages should have a name based on the trigger event","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/project-hygiene\/microflowtriggerprefix","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/648"}],"prev":[{"title":"Large entities should have documentation","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/project-hygiene\/entitydocumentation","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/646"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1513"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}