Editable content on masterpage

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/11/2011 2:27:32 PM
Gravatar
Total Posts 19

Editable content on masterpage

Hi,

Is there currently a way to provide an editable region with the masterpage?

ie, to provide the user the ability to alter certain text within the masterpage

thanks

1/11/2011 2:33:41 PM
Gravatar
Total Posts 19

Re: Editable content on masterpage

just to add to the previous post, adding the 2 extra content regions isnt really an option, as the same content would be required on every page.

 

1/11/2011 4:12:58 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Editable content on masterpage

Hi Simon, you can add a Module Wrapper around an HTML feature to your layout.master for this. I thought I recently saw a thread about how you can't edit some features when they are set up this way, but I'm pretty sure that the HTML feature will work as if it were placed on each page manually.

1/13/2011 12:08:51 PM
Gravatar
Total Posts 19

Re: Editable content on masterpage

Thanks ive tried this ,and works fine.

however, there seems to be a slight bug within mojobasepage.cs within the" UserCanOnlyEditModuleAsDraft"

if (WebUser.IsAdminOrContentAdmin) return false;

am i correct in saying that the returned result sound actually be true.

as this is false i am being redirected to the access denied page.

thanks

 

1/15/2011 10:46:55 AM
Gravatar
Total Posts 18439

Re: Editable content on masterpage

Hi,

The bug about redirecting to access denied is fixed in the latest source code but is not related to the UserCanOnlyEditModuleAsDraft function, it correctly returns false there because it is not true that Admins or Content Admins can "only" edit as draft, they can edit anything at all and are not limited by draft settings.

You can either get the latest code or as a workaround add the content to a private page protected by roles and edit from there where you will have the context of the page edit permissions available.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.