Exemple #1
0
        /// <summary>
        /// Determines whether [is standard field] [the specified field].
        /// </summary>
        /// <param name="field">The field.</param>
        /// <returns><c>true</c> if [is standard field] [the specified field]; otherwise, <c>false</c>.</returns>
        protected virtual bool IsStandardField(Sitecore.Data.Fields.Field field)
        {
            Assert.ArgumentNotNull(field, "field");

            TemplateField templateField = field.GetTemplateField();

            return((templateField.Template.ID != TemplateIDs.StandardTemplate) && (templateField.Template.BaseIDs.Length == 0));
        }
Exemple #2
0
        protected virtual bool IsTextField(Sitecore.Data.Fields.Field field)
        {
            Assert.ArgumentNotNull(field, "field");
            if (!this.TextFieldTypes.Contains(field.Type))
            {
                return(false);
            }
            TemplateField templateField = field.GetTemplateField();

            return((templateField == null) || !templateField.ExcludeFromTextSearch);
        }