Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Bullock 15 posts 75 karma points
    Oct 28, 2021 @ 17:17
    Robert Bullock
    0

    Default Template for Unassigned Content, v8

    I was getting a persistent error that a physical template file could not be found a particular document type. This I assumed was because some nodes did not have a template assigned. The name of the default template was NOT the same as the doc type alias... SO, I created a copy of my template and named it the same as the doc type alias, and lo and behold, the error went away.

    So question is: does Umbraco "fall back" to a view that matches the document type alias if there is no assigned template for a content item?

  • Yakov Lebski 591 posts 2347 karma points
    Oct 28, 2021 @ 17:26
    Yakov Lebski
    0

    you need assing template in umbraco backoffice and resave node again, another option you can add rendermvccontroller for this doctype and return your template

  • Robert Bullock 15 posts 75 karma points
    Oct 29, 2021 @ 16:17
    Robert Bullock
    0

    Yes, I understand that, HOWEVER, if you don't assign a template, it seems Umbraco will fall back to any view that matches the doc type alias. In fact, I confirmed this. I've never seen it documented but it's helpful to me so was just sharing it and asking for confirmation if it's intended.

Please Sign in or register to post replies

Write your reply to:

Draft