umbraco-webforms

umbraco razor - getting fields from content

[亡魂溺海] 提交于 2019-11-28 08:50:46
I have a 6 items of the same content type "news", in each item I have a field newsIntro. I want to put the fields in specific pages on another page so I need to target a specific field so it may be newsIntro on node 1702. I have tried a few things like @1720.newsIntro how do I target a specific field Thanks There are some great resources you should take a look at while you are learning Razor: Umbraco Razor Feature Walkthrough - An eight part blog post series of many of the new Razor features in Umbraco 4.7 with examples. Razor DynamicNode Cheat Sheet - A PDF of all the properties and methods

umbraco razor - getting fields from content

[亡魂溺海] 提交于 2019-11-27 03:00:10
问题 I have a 6 items of the same content type "news", in each item I have a field newsIntro. I want to put the fields in specific pages on another page so I need to target a specific field so it may be newsIntro on node 1702. I have tried a few things like @1720.newsIntro how do I target a specific field Thanks 回答1: There are some great resources you should take a look at while you are learning Razor: Umbraco Razor Feature Walkthrough - An eight part blog post series of many of the new Razor