Try our conversational search powered by Generative AI!

Multiline Textbox for String > 255 CMS Property

Vote:
 

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
Vote:
 

In page type try f.ex.

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

#65215
Jan 23, 2013 11:26
Vote:
 

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
Vote:
 

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
Vote:
 

@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
Vote:
 

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

Frederik

#73336
Jul 16, 2013 8:02
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.