Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In a razor view I am creating a breadcrumb with links.
There I am parsing the url and I need to detect if the specific portion of the url has a template assigned.
For the url /contacto/ubicacion-clinica-centro I have 2 possible links
/contacto - That is contentFolder doctype, without template
/contacto/ubicacion-clinica-centro - This is a contentPage with template
How can I detect if the string "contacto" that has the doctype "contentFolder" does not have an assigned template in a razor view?
You can always check on TemplateId property of IPublishedCotnent object, for example, template id of the current page:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted