Apply TOC and tags only to the full view mode of Page

Created on 22 August 2025, 24 days ago

Problem/Motivation

Currently, CivicTheme injects TOC and Tags into all view modes of a Page. This makes both TOC and Tags to appear on every view mode.

There is already a part in the code where we are filtering for the view mode for the node's title.

Steps to reproduce

1. Add a new view mode to Page
2. Add Components field to that view mode through Layout Builder
3. Render this view mode on a different page or through views
4. Observe TOC and Tags appearing

Proposed resolution

Add the same code fences to only show these on the `full` view mode.

Remaining tasks

- Code change

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.11

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024