Want to display dashboard after login into admin section

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
11/17/2011 11:33:41 PM
Gravatar
Total Posts 17

Want to display dashboard after login into admin section

Hi,

After login into admin section at present by default what we get is the home page but what i want is to display the dashboard after login, so what i have done is on the Login.aspx page of Secure folder i have is on the Page load i have performed the following and have build the solution.

//WebUtils.SetupRedirect(this, SiteRoot + "/Default.aspx");
 WebUtils.SetupRedirect(this, SiteRoot + "/Admin/Adminmenu.aspx");

 

But to my surprise nothing has changed, I am still getting the home page. Any suggestion?

Thanks,

Reena

 

11/18/2011 7:20:07 AM
Gravatar
Total Posts 18439

Re: Want to display dashboard after login into admin section

If you are that ready and willing to fork the code I lose interest in helping you, in the end forking the code will reflect badly on mojoPortal when your customer cannot upgrade or when another consultant comes along and does upgrade your customer site and they lose all your custom code. I have no interest in helping people fork mojoPortal code and I do not provide support for forked versions of mojoPortal.

My advice is don't modify mojoPortal code at all. I would look into implementing a custom usersigninhandler in your own project code and use that to do a hard redirect. 

11/18/2011 10:42:41 PM
Gravatar
Total Posts 17

Re: Want to display dashboard after login into admin section

Hi Joe,

First of all am extremely sorry for forking the code. I would be cautious as to not modify the code. Just a simple query what if the requirement needs some modification in the code. In that case what be should be followed?

 

 

Thanks,

Reena

11/20/2011 9:23:59 AM
Gravatar
Total Posts 18439

Re: Want to display dashboard after login into admin section

As stated in the article Avoid Forking the Code:

Any time you find yourself about to make changes in mojoPortal code you should stop and try to think of a creative way to accomplish your goal without doing that. Remind yourself that "All of your custom code should be in your own projects", this should always be your goal so that you can always pull the latest mojoPortal code from the repository without losing any custom code or getting any merge conflicts. The solution will vary from case to case depending on what you are trying to accomplish and you are free to ask in the developer forum and explain what you are trying to do and we "may" be able to help you come up with an idea. If not, then at least by understanding what you are trying to do it may help us think about new extension points we could add into mojoPortal to make it possible or easier to do what you are trying to do.

Also the article Cloning an Existing Feature provides another way to customize some features of mojoPortal in a way that still allows upgrading, because you can safely fork a CMS plugin feature into a new feature that is not sharing anything with the original feature. But forking the core of mojoPortal or directly modifying included CMS plugin features should be avoided completely.

Beyond that if the end result is that you cannot find a way to do what you want without forking the code then you should guide your customer to the right decision, it is not in your customers best interest to run their site on a forked version of mojoPortal that can never be upgraded. My advice is don't just be a "yes man" who never says no to your customers, as a professional it is your job to guide them toward a good decision and make them fully aware of the negative consequences of a bad decision. In the end I would rather that you and your customer use another platform instead of forking the code because eventually that bad decision will make the customer think badly of mojoPortal and it will hurt the reputation of mojoPortal.

Hope that helps,

Joe

11/21/2011 10:44:53 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Want to display dashboard after login into admin section

The User Sign in Event Handler with a hard redirect is a great idea. That way you can query the account, and only do the Admin redirect if the user that logged in is a member of the Administrators role.

Jamie

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