Content Managment & Menus

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/25/2009 8:56:12 AM
Gravatar
Total Posts 18439

Re: Content Managment & Menus

I think you must have a folder permission problem that prevents it from reseting the site map cache. When you change view role on a page it tries to touch a cache dependency file to clear the site map cache but if file permissions are not correct it cannot modify the file therefore it cannot clear the cache therefore the menu does not change.

If the permissions are changed and the site map cache is cleared and the page is refreshed it will filter out the menu.

You need to make sure the /Data folder and all child objects are writable by the web process user. It will create cache dependency files at /Data/Sites/1/systemfiles

You can try the same thing on demo.mojoportal.com, it works correctly.

Hope it helps,

Joe

 

6/17/2010 7:16:38 AM
Gravatar
Total Posts 137
When enough isn't

Re: Content Managment & Menus

Hi

I have a related question:

I have a custom page with two controls on, A and B. What if I would like the page with control A to be visible to everyone, but only control B to be visible to adminstrators? How do I manage that with MojoPortals role based security system?

Example mentioned:

Script:

protected void Page_Load(object sender, EventArgs e)
{
    ControlB.Visible = false;
    if (Roles.IsUserInRole("Administrators")) ControlB.Visible = true;

}

...

Pages and Controls:

Home

--Contact Us

--Custom page (=aspx)

  <asp:Listview ID="ControlA" ....

  <asp:FormView ID="ControlB" visibility="false" .....

 

Best regards

Lars

6/17/2010 7:20:39 AM
Gravatar
Total Posts 18439

Re: Content Managment & Menus

Hi Lars,

This is not a related question at all and should be asked on a new thread in the developer forum since it involves a question about your own custom code not about site administration or menus.

Best,

Joe

6/17/2010 7:29:33 AM
Gravatar
Total Posts 137
When enough isn't

Re: Content Managment & Menus

Sorry - I have created a new thread there. Thanks

Lars

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