Allow creation of content templates for view modes other than Full
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3574412. --> Reported by: [pameeela](https://www.drupal.org/user/1431110) Related to !618 >>> <h3 id="overview">Overview</h3> <p>Currently only the Full content view mode is available to be configured as a content template. This was a deliberate 1.0 scope decision in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3541000" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3541000</a></span>.</p> <p>Although there is not yet support for referencing entities from components (<span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3573831" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3573831</a></span>)_, there is already support for using these modes in views, so it's a useful feature that can be exposed.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Remove the restriction on view modes for content templates. @lauriii approved from a Product POV per #10.</p> <p>Once this is done, we should do <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/canvas/issues/3579181" title="Status: Closed (fixed)">#3579181: ContentTemplateAwareViewBuilder should use auto-saved templates inside Canvas Editor</a></span> next.</p> <h3 id="ui-changes">User interface changes</h3> <p>As noted.</p>
issue