{{- $contentType := .Get "contentType" -}}
{{- $entryId := .Get "id" -}}
{{- $linkText := .Inner | markdownify -}}
{{- if eq $contentType "__custom-content-type__" -}}
{{- $path := print "__path-to-content-type__/" $entryId -}}
{{- with .Site.GetPage $path -}}
{{ $linkText }}
{{- else -}}
[[Error rendering entry hyperlink]] {{ $linkText }}
{{- end -}}
{{- else if .Site.GetPage $entryId -}}
{{ $linkText }}
{{- else -}}
[[This entry hyperlink is not configured]] {{ $linkText }}
{{- end -}}