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
Hi Guys,
just wondering what the default umbraco values are on an item?
i.e. @Model.Name
@Model.Active
what else is there?
I think a list of the default properties available on the wiki would be good?
I'm basically in a foreach and trying to work out
foreach(var item in @Model.Children)
{
if(@item.DocType??? == "SomeDocType")
}
how do i check for the doctype?
Hi Tom,
I found this list on the wiki about properties on the DynamicNode and Model.
http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets/dynamicnode-%28and-model%29-members-and-properties
I have not had the opportunity to look at Razor yet, so it's not much knowledge I have of this.
So I hope this can help you.
/Dennis
Thanks so much!
that's EXACTLY what i was looking for!
Cheeers Dennis!
I´m glad that I could help you :-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Default Umbraco properties on @Model?
Hi Guys,
just wondering what the default umbraco values are on an item?
i.e. @Model.Name
@Model.Active
what else is there?
I think a list of the default properties available on the wiki would be good?
I'm basically in a foreach and trying to work out
foreach(var item in @Model.Children)
{
if(@item.DocType??? == "SomeDocType")
{
}
}
how do i check for the doctype?
Hi Tom,
I found this list on the wiki about properties on the DynamicNode and Model.
http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets/dynamicnode-%28and-model%29-members-and-properties
I have not had the opportunity to look at Razor yet, so it's not much knowledge I have of this.
So I hope this can help you.
/Dennis
Thanks so much!
that's EXACTLY what i was looking for!
Cheeers Dennis!
Hi Tom,
I´m glad that I could help you :-)
/Dennis
is working on a reply...