Can I set some pages which is hidden by default?

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.
6/27/2011 5:29:32 AM
Koe
Gravatar
Total Posts 29

Can I set some pages which is hidden by default?

Hello,

Is it possible to set some pages be hidden by default, but if the users have the link and permission, they can view the page?

I have written a menu page for the site, so that the users can access all functions they have through the page. It is no need to show all the pages by default, so I want to hidden those pages. But when the users click the link in the menu page, they should see the content of that page.

Thank you very much if this issue can be solved.

6/27/2011 7:10:50 AM
Gravatar
Total Posts 18439

Re: Can I set some pages which is hidden by default?

Hi,

See Roles and Permissions. You can create roles and set those roles as required to have view permissions on any page in mojoPortal and the menu will automatically filter based on the users roles. You can set the "Roles Allowed to View This Page" from Page Settings. You can manage users roles by find the user in member list and click the manage user link.

Hope that helps,

Joe

6/27/2011 10:45:14 AM
Gravatar
Total Posts 1204
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Can I set some pages which is hidden by default?

It sounds like maybe you also want to exclude these secured pages from the mojoPortal menu, and only show them in your own custom menu page? If so, in Page Settings you can uncheck the box "Include In Menu" for those pages.

Jamie

6/27/2011 10:30:46 PM
Koe
Gravatar
Total Posts 29

Re: Can I set some pages which is hidden by default?

Hi Joe and Jamie,

I think there are four security settings is related to this issue.

- "Include in Site map" will make the site map created by mojoportal do not show this page.

- "Hide this page from authenticated users" will make the page be hidden where "Include In Menu?" will show the page

- "Security - Page View" make the user can view the page

- "Security - Module View" make the user can view the module

Ignore the first one which is only relate to display in menu. The users can only view the content of the module if he has both the two security. When I enable the security, and also tick the "hiding" setting, it fit my requirement - hidden but user can access the page if they have the hyperlink. But it also hidden the page for administrators which is a bit inconvenient to use. Is it possible to set the page be:

Guest: Hidden and cannot access

Authenticated Users: Hidden, but can access if they have the hyperlink

Administrators: Shown, and also accessible

 

I am using the version 2.3.3.4 and 2.3.5.4, thank you very much for the quick response.

 

6/28/2011 6:08:01 AM
Gravatar
Total Posts 18439

Re: Can I set some pages which is hidden by default?

The "Hide" settings are not security settings they are cosmetic only.

To protect a page you should use View Roles.

I really do not understand what you are trying to do, seems easy to me that if I mark the view roles to  only allow users in a privileged role then the menu item is not visible to users who are not in the role, therefore there is no need for another way to hide them.

Best,

Joe

6/28/2011 9:58:05 PM
Koe
Gravatar
Total Posts 29

Re: Can I set some pages which is hidden by default?

Hi Joe,

I know that if I permit the view access right to the users, and do not select "include in menu", the page is hidden to users, but they can access through having the link. But it will also hidden to administrators that I want the administrators to see the page in the menu.

So is it possible to "include in menu" to only some of the users?

 

6/29/2011 5:50:38 AM
Gravatar
Total Posts 18439

Re: Can I set some pages which is hidden by default?

Just set "View Roles" to only allow Administrators and check the box that says "Include In Menu". It will still be hidden from users who are not in Administrators role because the menu filters by role and does not show links if the user is no in a role that allows viewing the page. You will see if you are signed in as a user in Administrators role then the page is visible in the menu, but if you sign out it is not visible in the menu.

6/30/2011 1:51:26 AM
Koe
Gravatar
Total Posts 29

Re: Can I set some pages which is hidden by default?

Hi Joe,

If I do not permit the view permission to users, they do not have the right to access the page, so they cannot view the page by typing the hyperlink.

I think it is more accurate for what I want:

Admins: Having view permission, and "include in menu".

Normal Users: Having view permission, but not "include in menu". (They need to access the page by typing the hyperlink)

If "include in menu" cannot be set separately for users, I think hidden the page for all admins and users will be the solution.

6/30/2011 8:59:43 AM
Gravatar
Total Posts 18439

Re: Can I set some pages which is hidden by default?

Include In Menu is not per user or per role so I guess if you don't want to display it you would have to make everyone type in the urls.

Only other idea is if you make the admins use a different skin then you could just leave the menu out of the main skin and only include it in the skin used by admins. Note that user specific skins are disabled by default but users in "Roles That Can Manage Skins" can still use a custom per user skin set from "My Account". Since admins are always in every role even without adding them to the role then they also can set a skin from My Account aka user profile. But the skin is not set by role so each admin would have to set the desired skin from their user profile.

Hope that helps,

Joe

6/30/2011 10:42:17 AM
Gravatar
Total Posts 2214

Re: Can I set some pages which is hidden by default?

Hi,

Another solution would be to create pages that redirect to the hidden pages and set these redirect pages up to only allow viewing by Administrators. It would work something like this:

  1. Create hidden page, with url '~/hidden-page.aspx'.
  2. On Hidden Page, Remove "Include In Menu" check-mark.
  3. Create redirect page, with url 'http://www.yourdomain.com/hidden-page.aspx'.
  4. On Redirect Page, set 'Roles that can view this page' to Administrators.

Now, when a regular user is logged in, they will not see the item in the menu but will be able to see the page. When an Administrator is logged in, they will see the Redirect Page in the menu. You can name the Redirect Page the same as the actual, hidden page because the URL will be a full URL, not relative. I do suggest that you name it slightly different so no one gets the two confused when making changes to the settings on the pages.

Hope this helps,
Joe D.

7/4/2011 3:40:03 AM
Koe
Gravatar
Total Posts 29

Re: Can I set some pages which is hidden by default?

Joe and Joe D.,

Thanks a lot. I will try the methods later.

Kev

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