November Happy Hour will be moved to Thursday December 5th.

On Page editing for string with UIHint.Textarea in a block

Vote:
 

Hello!

I am trying to get On Page editing for a string with the attribute [UIHint.Textarea]. The property is in a block, and we have a preview controller for the block, so we can edit it and see how it looks.

With the attribute, it doesn't work. But without it (when rendered just as a string), it works.

Anyone knows why?

Doesn't work:

[UIHint(UIHint.Textarea)]
[Display(GroupName = GroupNames.Content, Order = 10)]
public virtual string Teaser { get; set; }

Works:

[Display(GroupName = GroupNames.Content, Order = 10)]
public virtual string Teaser { get; set; }
#123460
Jul 06, 2015 13:10
Vote:
 

Hi,

Did you tried to use [UIHint(UIHint.LongString)] instead of [UIHint(UIHint.TextArea)]  ?

#123461
Jul 06, 2015 13:13
Vote:
 

That works, but what is the difference?

#123462
Jul 06, 2015 13:40
Vote:
 

I have only information from documentation:

Textarea - Creates a text area to edit a string.
LongString - Edits a string inline in on-page-edit mode and with text area in form mode

They are not marked as obsolete, so it looks like both can be used.

#123464
Jul 06, 2015 13:53
Vote:
 

Thanks for the help, this problably works just fine :)

#123465
Jul 06, 2015 14:16
Vote:
 
<p>Hi&nbsp;<span>&nbsp;</span><a href="/System/Users-and-profiles/Community-Profile-Card/?userid=a6dd601f-f873-e111-968f-0050568d002c">Grzegorz</a>,</p> <p></p> <p>Thanks for the solution.................It worked for me......</p>
#140870
Nov 02, 2015 15:17
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.