Overriding an EditableFreeTextArea with an EditableTextBox

Topics: Developer Forum, Project Management Forum, User Forum
Nov 21, 2008 at 4:42 PM
Edited Nov 21, 2008 at 4:43 PM
In a parent content Item I have this property:
        [N2.Details.EditableFreeTextArea("Text", 100, ContainerName = CmsContentInputTabs.Content)]
        public virtual string Text
        {
            get { return (string)(GetDetail("Text") ?? string.Empty); }
            set { SetDetail("Text", value, string.Empty); }
        }

In a child class I have overridden the property like this:
    [N2.Details.EditableTextBox("Text", 100, ContainerName = CmsContentInputTabs.Content, TextMode = TextBoxMode.MultiLine, Rows = 30, Columns = 50)]
    public virtual string Text
    {
        get { return (string)GetDetail("Text"); }
        set { SetDetail("Text", value, string.Empty); }
    }

When I use the edit tool to change the content using this content Item I am still shown the FreeTextArea. I have tried using the "virtual" and "new" keywords instead of override, but those didn't work either. How can I override this property so I see the TextBox not the FreeText. Is there way to accomplish what I am trying to do?ThanksDaniel
Coordinator
Nov 21, 2008 at 5:11 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.