Hide buttons and runtime

6 posts, 0 answers
  1. James Fraser
    James Fraser avatar
    5 posts
    Member since:
    Jun 2004

    Posted 19 Jun 2007 Link to this post

    I have a customer query relating to show/hide button functionality with the Premium MOSS control.

    Is it possible to limit the buttons displayed in the toolbar based on the content authors role? e.g. Only display Switch to HTML View for authorised users.
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 20 Jun 2007 Link to this post

    Hello,

    Currently, you cannot dynamically enable/disable the editor features depending on the user role. You can remove HTML mode by modifying the ConfigFile.xml (located by default at \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.1.0.0__1f131a624888eeed\RadControls\Editor\). However, this change will affect all editor users.

    If you have experience with Visual Studio and C#, we can assist you in creating your own editor (which inherits from the RadEditor for MOSS). This way you will be able to implement role based or even page based security and customize the editor for your site.

    Kind regards,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. James Fraser
    James Fraser avatar
    5 posts
    Member since:
    Jun 2004

    Posted 20 Jun 2007 Link to this post

    Thanks for the reply - this is just what I wanted to hear.
  4. Rana
    Rana avatar
    14 posts
    Member since:
    Mar 2009

    Posted 06 Jul 2009 Link to this post

    Lini,
    Do you have any working examples of customising the editor to enable/disable toolbar buttons dynamically based on ROLE?
    Appreciate your early response.

    Regards,
    Prat
  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 07 Jul 2009 Link to this post

    Hi Rana,

    You can see an example of a custom web part control that uses the MOSSRadEditor in our help: http://www.telerik.com/help/aspnet-ajax/radeditor-in-custom-moss-solutions.html. There you can set the editor's ToolsFile and ConfigFile properties to point to custom configuration files based on the current user role. The default path for the configuration files in version 5.x is /_wpresources/RadEditorSharePoint/5.4.1.0__1f131a624888eeed/Resources/ConfigFile.xml (where 5.4.1.0 is the RadEditor for MOSS version you have installed).

    Best wishes,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Rana
    Rana avatar
    14 posts
    Member since:
    Mar 2009

    Posted 07 Jul 2009 Link to this post

    Lini,
    Got the solution.
    Thank you verymuch.

    Regards,
    Prat
Back to Top