Using MOSS to edit in page layouts

2 posts, 0 answers
  1. Rasmus
    Rasmus avatar
    2 posts
    Member since:
    Jun 2008

    Posted 15 Jul 2008 Link to this post

    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
  2. Rasmus
    Rasmus avatar
    2 posts
    Member since:
    Jun 2008

    Posted 15 Jul 2008 Link to this post

    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

Back to Top