Different Layout for Admin area

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/23/2007 1:41:00 AM
Gravatar
Total Posts 17

Different Layout for Admin area

Hello!

Mojoportal seems perfect among all opensource CMS for ASP.NET.

Just facing 1 problem with its ADMIN Area right now.

I wanna change Layout for Admin area, Means i wanna hide some components from main website while user is Login into Admin area.

I wanna know How can i make totally different Layout(skin) for Admin area.

Plzz Help me.

 

Thank you.

10/23/2007 10:45:01 AM
Gravatar
Total Posts 43
Partner

Re: Different Layout for Admin area

I too will be interested in seeing Joe’s response. I have the same situation where I want pages (menu items) to go away once they are logged into the system. I may be wrong, but I don’t think mojoPortal supports this yet.

A different portal lists this on their website which is what I think we are looking for:

  • Support for “short” and “full” user registration options. Pre-defined roles for “Authenticated Users” and “Unauthenticated Users” allow you to easily restrict the visibility of individual modules and pages to users that are logged on to the site.

-Todd

10/23/2007 1:10:52 PM
Gravatar
Total Posts 18439

Re: Different Layout for Admin area

These seem like completely different questions to me.

Kunjan,

Currently the Admin section doesn't have any feature allowing the layout to be customized. In the future I plan to do some work to improve the layout of the Admin section using some Ajax things like dojo but it is not my goal or intention to make the layout of the admin customizable per se. Maybe if I find any easy to use thing in dojo for draggable dockable panels I will provide for some arranging things, we shall see. I would consider adding an option that allows specifying a skin for the admin section separate from the main site skin but there is currently no such option and changing the skin doesn't really change the layout of the Admin features.

Todd,

Your question is about showing and hiding pages in the menu depending on whether the user is logged in. mojoPortal has an Authenticated Users role that all users are automatically added to making it easy to create pages that are only visible when logged in by making them visble to "Authenticated Users" role.

We do not currently have a feature for hiding pages from authenticated users, only for hiding pages from unauthenticated users or from users not in the allowed roles. It would be easy enough to add an option in Page Settings for "Hide From Authenticated" so that we can support pages that go away after you login. I will look into doing that sometime soon.

Best,

Joe

10/25/2007 8:19:11 AM
Gravatar
Total Posts 4

Re: Different Layout for Admin area

I would also like to have the ability to hide pages once a user is logged in.  I was going to try to accomplish this with split menus once I get to that point but having a security role would be so much easier.

Just my two cents,

Frank

10/25/2007 9:22:09 AM
Gravatar
Total Posts 18439

Re: Different Layout for Admin area

Hi,

I will implement the "Hide From Authenticated" page setting soon but note it is not going to be a security role. In the case of making a page visible to authenticated users we can use a role but in making something not visible to authenticated there is no role to use as roles are only associated with authenticated users. We cannot create a role for unauthenticated as by definition to check your roles you must be authenticated.

So basically the logic will be

if((page.HideFromAuthenticated)&&(Request.IsAuthenticated))
{
// logic to hide the page

}

When implemented this code will live in the databinding events of the menus and sitemaps.

Best,

Joe

12/15/2007 2:45:03 PM
Gravatar
Total Posts 18439

Re: Different Layout for Admin area

The option to hide a page from authenticated users is now implemented in svn trunk. It shows up in Page Settings as a checkbox.

It will be in the next release.

Best,

Joe

2/4/2009 9:28:50 AM
Gravatar
Total Posts 2

Re: Different Layout for Admin area

The easiest solution to having an admin skin is to create one and set it as the site default. Then create a skin for the content and assign it to all your pages.

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