Rebel.Cms.Web.RebelHelper.Field C# (CSharp) Method

Field() public method

public Field ( Content currentPage, string fieldAlias, string valueAlias = "", string altFieldAlias = "", string altValueAlias = "", string altText = "", string insertBefore = "", string insertAfter = "", bool recursive = false, bool convertLineBreaks = false, bool removeParagraphTags = false, RebelRenderItemCaseType casing = RebelRenderItemCaseType.Unchanged, RebelRenderItemEncodingType encoding = RebelRenderItemEncodingType.Unchanged, string formatString = "" ) : IHtmlString
currentPage Content
fieldAlias string
valueAlias string
altFieldAlias string
altValueAlias string
altText string
insertBefore string
insertAfter string
recursive bool
convertLineBreaks bool
removeParagraphTags bool
casing RebelRenderItemCaseType
encoding RebelRenderItemEncodingType
formatString string
return IHtmlString
        public IHtmlString Field(Content currentPage, string fieldAlias, string valueAlias = "",
            string altFieldAlias = "", string altValueAlias = "", string altText = "", string insertBefore = "", string insertAfter = "",
            bool recursive = false, bool convertLineBreaks = false, bool removeParagraphTags = false,
            RebelRenderItemCaseType casing = RebelRenderItemCaseType.Unchanged,
            RebelRenderItemEncodingType encoding = RebelRenderItemEncodingType.Unchanged,
            string formatString = "")
        {
            return new FieldRenderer()
                .RenderField(_requestContext, _controllerContext, currentPage, fieldAlias, valueAlias, altFieldAlias, altValueAlias,
                altText, insertBefore, insertAfter, recursive, convertLineBreaks, removeParagraphTags,
                casing, encoding, formatString);
        }

Same methods

RebelHelper::Field ( string fieldAlias, string valueAlias = "", string altFieldAlias = "", string altValueAlias = "", string altText = "", string insertBefore = "", string insertAfter = "", bool recursive = false, bool convertLineBreaks = false, bool removeParagraphTags = false, RebelRenderItemCaseType casing = RebelRenderItemCaseType.Unchanged, RebelRenderItemEncodingType encoding = RebelRenderItemEncodingType.Unchanged, string formatString = "" ) : IHtmlString