diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index 1f2cb8c7d..15a41f08a 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -566,6 +566,10 @@ abstract class DocumentShow extends Base return $template; } + if (!empty($alias = config('type.' . $type . '.alias'))) { + $type = $alias . '.' . str_replace('-', '_', $type); + } + $documentTemplate = setting($type . '.template') ?: 'default'; return $documentTemplate;