Beispiel #1
0
        public IEnumerable <ID> GetValue(IIndexable indexable, string fieldName)
        {
            var item = ItemProvider.Get(indexable);

            if (item == null)
            {
                return(null);
            }

            return(GetValue(item, fieldName));
        }
Beispiel #2
0
        public string GetValue(IIndexable indexable, string fieldName)
        {
            var item = ItemProvider.Get(indexable);

            if (item == null)
            {
                return(null);
            }

            var title = item.GetFieldValue(fieldName);

            return(title.ToValueOrNull());
        }