Enable Editing on Category or Product Pages
Set editing privileges with more precision than type-to-type mapping.
Complete the following prerequisites:
-
There are one or more virtual or base catalogs containing product and category definitions.
-
You have assigned a layout and some controls to the products or categories
Context for the current task
-
Task step.
If you are using MVC:
continue to the next step.
If you are using WebForms :
continue to 4
-
In a view or partial view, use this syntax:
@Html.Sitecore().Field("Description", this.Item) -
In code behind, use this syntax:
PageContext.Current.HtmlHelper.Sitecore().Field("Description", this.Item); -
In WebForms, use this syntax:
<sc:Text runat="server" field="fieldName" />