|
| Enabling Post Editor tab options based on roles |
 |
Thu, 5 Oct 2006 17:16:59 +0000 |
We would like to disable/enable some of the tab options from the PostEditor
based on Roles. Is there a way to do that?
----------------
Sure!
For the Blog Editor:
While the tabs are displayed through a javascript onclick() function from the
Advanced Options checkbox, you can set the Tab visibility in the codebehind by
giving each pane an ID.
In the CreateEditBlogPost.ascx control, assign an ID to the Attachments Tab.
<TWC:TabbedPane runat="server" id=TabAttachments>
Create it in the CodeBehind
protected TWC.TabbedPane TabAttachments;
And at some point perform your roles logic and set visibility. This will
override the javascript onclick() process.
TabAttachments.Visible = false;
For Forums Posts:
Same principal. The ASCX you'd modify is
\themes\default\skins\View-CreateEditPost.ascx, CodeBehind
CS.Controls.CreatedEditPost.cs.
Dave
|
| Post Reply
|
|
|
|
|
|
|
|
|
|