How to render document type from NC with multiple doc types
Hello,
I've started using nested content for a while. Thanks for this great extension.
I configured two document types in nested content for a project, and i need to read doc type alias from nc. I can get all the properties but couldn't manage to read ncContentTypeAlias.
I tried @Umbraco.Field(item, "ncContentTypeAlias") . It returns nothing.
What should be the correct syntax to get the doc type alias?
How to render document type from NC with multiple doc types
Hello,
I've started using nested content for a while. Thanks for this great extension.
I configured two document types in nested content for a project, and i need to read doc type alias from nc. I can get all the properties but couldn't manage to read ncContentTypeAlias.
I tried @Umbraco.Field(item, "ncContentTypeAlias") . It returns nothing.
What should be the correct syntax to get the doc type alias?
Ps. I work on Umbraco 7.2.8
Thanks in advance...
Hi Osman,
The DocType alias isn't available as a property-value on the node, but you can try accessing it on the object itself:
Cheers,
- Lee
Yep it worked.
Thanks for the fast reply.
Cheers :)
No worries! Good to hear you're enjoying Nested Content! :-)
Cheers,
- Lee
It's pretty usefull for listing pages like press reviews, links. Good job...
is working on a reply...