Multiline Textbox for String > 255 CMS Property

Kiran Hegde
Member since: 2009
 

We have upgraded one of the website from EpiServer CMS 6 R2 to CMS 7. We have all the page types defined in the CMS admin mode. There are no typed pagetypes, the new way of creating the page type. We have some properties of type string > 255 charectors, which earlier used to show a rich text editor. But now they are simple textbox which is not readable when there are more content. Most of the properties we changed to XHTML string where we need rich text editor and still some properties we don't need editor. Is it possible to have a multiline textbox for the string > 255 charector property?

#65209 Jan 23, 2013 9:59
  •  

    In page type try f.ex.

        [UIHint(UIHint.Textarea)]
        public virtual string MainIntro { get; set; }

    #65215 Jan 23, 2013 11:26
  • Kiran Hegde
    Member since: 2009
     

    Hi TDLA, Thanks for the reply. We have not defined the page types through the code. They are defined directly from the Admin mode.

    #65217 Jan 23, 2013 11:29
  • Linus Ekström
    Member since: 2002
     

    If you want to use pages without typed models you will have to change your old PropertyLongString-properties to a custom property type. See how to create your property here:

    http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=63109

    #65222 Jan 23, 2013 12:53
  • Paul Kennett
    Member since: 2007
     

    @Linus - are you able to point me at any reasonable discussion on converting Admin-mode created page types to typed models.  I haven't found anything very helpful.  Especially in the area of custom properties associated to pages.  Thanks

    #73330 Jul 16, 2013 1:26
  •  

    @piquet, check out Alf's tool: Creating Page Type Classes from Page Types in EPiServer CMS 7.

    Frederik

    #73336 Jul 16, 2013 8:02