Example #1
0
        /// <summary>
        /// Loads the entry.
        /// </summary>
        protected virtual void LoadEntry()
        {
            // Load tags
            if (!Sitecore.Context.PageMode.IsExperienceEditorEditing)
            {
                var tags = ManagerFactory.TagManagerInstance.GetTagsForEntry(CurrentEntry);
                var list = LoginViewTags.FindControl("TagList") as ListView;

                if (list != null)
                {
                    list.DataSource = from tag in tags select tag.Name;
                    list.DataBind();
                }
            }
        }
Example #2
0
        /// <summary>
        /// Loads the entry.
        /// </summary>
        protected virtual void LoadEntry()
        {
            // Create entry of current item
            EntryItem current = new EntryItem(Sitecore.Context.Item);

            // Load tags
            if (!Sitecore.Context.PageMode.IsPageEditorEditing)
            {
                var tags = ManagerFactory.TagManagerInstance.GetTagsByEntry(current);
                var list = LoginViewTags.FindControl("TagList") as ListView;

                if (list != null)
                {
                    list.DataSource = from tag in tags select tag.Key;
                    list.DataBind();
                }
            }
        }