This is a migrated thread and some comments may be shown as answers.

Using MOSS to edit in page layouts

1 Answer 72 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Rasmus
Top achievements
Rank 1
Rasmus asked on 15 Jul 2008, 11:19 AM
Hi
(sorry, the title should probably have been using RAD to edit in page layouts)

I'm using CMS part in MOSS and have deployed the solution and enabled the two features that replaces the built in editor with the RAD editor.

I have a content type (let's call it: "newspage").

It has a site column called "bodytext". The definition of that field in the deployment package is the following:

<

Field Type="HTML" DisplayName="Body Text" RichText="TRUE" RichTextMode="FullHtml" Required="FALSE" Group="My columns" ID="{6bff35d5-a40b-45d2-9fa9-ffc9ce86203d}" StaticName="bodytext" Name="bodytext"></Field>


Pretty basic stuff. I can now put in conent through either the "front end" (simply viewing the site and pressing "Edit" on the page) or "back end" (though the "Manage Content and Structure" and edit the list item directly).

Whenever I edit the list item directly through the "Manage Content and Structure" everything works fine, but whenever I try to edit the content directly in the page (using my page layout) and put more than 255 characters into it, I get the validation error: "This field can have no more than 255 characters".

To sum up:
- My field builds on the "HTML" field
- I've installed the solution and activated the feature
- The stuff works when editing the list item directly
- The stuff DOESN'T work when I edit through the page layout and have more than 255 characters.

So can you tell me if I'm doing something wrong or if your fieldcontrol is buggy?

Cheers
Rasmus

1 Answer, 1 is accepted

Sort by
0
Rasmus
Top achievements
Rank 1
answered on 15 Jul 2008, 02:07 PM
I solved it myself. I forgot to add the

UnlimitedLengthInDocumentLibrary="TRUE"

To the field xml (what a hack... of course I want to use unlimited length of the content. Who in their sane minds would want a max of 255 characters in a html field).

Cheers
Tags
Sharepoint Integration
Asked by
Rasmus
Top achievements
Rank 1
Answers by
Rasmus
Top achievements
Rank 1
Share this question
or