This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Feature Request] Allow use of variables in section settings’ "Template" field (like "Entry URI Format") #5351
Labels
enhancement
improvements to existing features
site development 👩💻
features related to website/API development
When creating a Channel or Structure section, it would be useful if we could use variables in the "Template" field(s) below "Site Settings", just like we can in the "Entry URI Format" field(s). For instance, I would like to load a different template based on the entry's type, so I would do it like this:
But right now I get the following error message when visiting the URL of an entry in that section:
I know I can achieve the same effect by pointing to a single template that includes a different template based on the
entry.type.handle
, but I would like to avoid that{% include %}
if possible (not sure if it adds any overhead at all, but just from a clean code perspective).Thanks for considering :)
The text was updated successfully, but these errors were encountered: