Custom module with long strings in a field
Hi,
I've been experimenting with a custom module based on one of Josh Morales' posts. I want to add a custom field called LeadText, but I'd like it to be able to persist something longer than 256 characters.
At first, I tried this:
/// <summary>/// LeadText. A summary version of the main content./// </summary>[DataMember]public string LeadText get return this.leadText; set this.leadText = value; /// <summary>/// LeadText. A summary version of the main content./// </summary>[DataMember][UserFriendlyDataType(UserFriendlyDataType.LongText)]public string LeadText get return this.leadText; set this.leadText = value; Ah, never mind. I realized I needed to update the Fluent mapping as well.
itemMapping.HasProperty(p => p.LeadText).IsLongText(this.Context).IsNullable();