layout builder http://alexmoreno.net/ en Layout Builder: Exposing content type default layout with jsonapi http://alexmoreno.net/layout-builder-exposing-content-type-default-layout-jsonapi <article role="article" about="http://alexmoreno.net/layout-builder-exposing-content-type-default-layout-jsonapi" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser"><header><span property="schema:name" content="Layout Builder: Exposing content type default layout with jsonapi" class="hidden"></span> <div class="node__meta"> <span> By <span class="node__author"><span rel="schema:author"><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 15 September, 2020 </span> <span property="schema:dateCreated" content="2020-09-15T08:03:30+00:00" class="hidden"></span> </div> <div class="node__top-wrapper"> <div class="field field--name-field-image field--type-image field--label-hidden field__item"> <a href="http://alexmoreno.net/layout-builder-exposing-content-type-default-layout-jsonapi" hreflang="en"><img property="schema:image" loading="lazy" src="http://alexmoreno.net/sites/default/files/2020-09/default-layout-builder-json.png" width="939" height="335" alt="Exposing the default content type layout with layout builder" typeof="foaf:Image" /></a> </div> <h2 class="node__title"> <a href="http://alexmoreno.net/layout-builder-exposing-content-type-default-layout-jsonapi" rel="bookmark"> <span property="schema:name">Layout Builder: Exposing content type default layout with jsonapi</span> </a> </h2> </div> </header><div class="node__content text-content"> <div property="schema:text" class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>There is an on going issue for <strong>Layout Builder</strong> which aims to expose the overridden layout of a given node. However to expose the <strong>default layout</strong> if a node is not overriding the default layout is a bit trickier.</p></div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tag-ref"> <h3 class="field__label field--tag-ref__label">Tags</h3> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/layout-builder" property="schema:about" hreflang="en">layout builder</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/drupal" property="schema:about" hreflang="en">drupal</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/json" property="schema:about" hreflang="en">json</a></li> </ul></div> </div> </article> Tue, 15 Sep 2020 08:03:30 +0000 alexmoreno 142 at http://alexmoreno.net