Content greater than 6000

  • 27 Views
  • Last Post 2 weeks ago
Chris posted this 2 weeks ago

Just a question, I want to be able to easily modify the Content Length?

I have read the thread: Edit topic with length content more than 6000

Is there an option we can add in the Web.config to fix this? Is this a Modify Code then Build issue?

   Chris

Great Product! Thank You!

Chris posted this 2 weeks ago

Looking in the source code, it appears so: namespace MVCForum.Website.ViewModels

 

PostViewModels.cs

    public class CreateAjaxPostViewModel

    {

        [UIHint(AppConstants.EditorType), AllowHtml]

        [StringLength(6000)]

        public string PostContent { get; set; }

        public Guid Topic { get; set; }

        public bool DisablePosting { get; set; }

        public Guid? InReplyTo { get; set; }

        public string ReplyToUsername { get; set; }

    }

 

TopicViewModels.cs

    public class CreateEditTopicViewModel

    {

        [Required]

        [StringLength(100)]

        [ForumMvcResourceDisplayName("Topic.Label.TopicTitle")]

        public string Name { get; set; }

 

        [UIHint(AppConstants.EditorType), AllowHtml]

        [StringLength(6000)]

        public string Content { get; set; }

        ...

    }

 Credit to the thread above for the hint and direction.

   Chris 

Close