using System.ComponentModel;
using MrCMS.Entities.Widget;
using MrCMS.Web.Apps.Articles.Pages;
using MrCMS.Website;

namespace MrCMS.Web.Apps.Articles.Widgets
{
    [WidgetOutputCacheable(PerPage = true)]
    public class ArticleCategories : Widget
    {
        public virtual ArticleList ArticleList { get; set; }

        [DisplayName("Show Name As Title")]
        public virtual bool ShowNameAsTitle { get; set; }

        public virtual string Category
        {
            get { return CurrentRequestData.CurrentContext.Request["category"]; }
        }
    }
}