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/26/2007 9:14:49 AM
Gravatar
Total Posts 31

Content Managment & Menus

  I want to make sure I am using mojo properly...

I a set of menus built by adding pages.  Top level menus generally lead to a "section".  Works perfect.  Now I have 2nd level menus that I want to point directly to HTML content.  I need to create a "page" for the menu AND create HTML content in Content Mgr, then publish it to the "section" page.  It works, but is that the proper way to go about it? 

(sample menu structure) 

Home
--Who we Are
--Contact Us
Services
--Project Management
----Item 1
----Item 2
--Analysis

Is there a way to create menu items that point directly to HTML content? 

eg.  "Who We Are" is just in the DB as HTML content, but appears as a menu item.

9/26/2007 9:47:49 AM
Gravatar
Total Posts 18439

Re: Content Managment & Menus

It sounds like you are doing it correctly to me.

There is no way to link directly to a content instance. Content must be published on a page in order to be available  even if it is the only item on the page.

You can make menu items that point to files outside the content manager like if you have an .html file or a.pdf you can create a page (which corresponds to a menu item) and then set a fully qualified url to an html file or pdf etc.

Joe

9/26/2007 9:55:39 AM
Gravatar
Total Posts 31

Re: Content Managment & Menus

So if I create a menu item that points to a .pdf, could it be pointed to a file that is uploaded by the user?

9/26/2007 10:03:05 AM
Gravatar
Total Posts 18439

Re: Content Managment & Menus

There is nothing automated for that but if the user is an admin he could upload a file using the File Manager then he could create a page that links to it as long as he knows how to contruct a valid url that points to it.

Maybe at some point we could create some kind of wizard for doing that in a more automated way.

Joe

9/26/2007 10:12:02 AM
Gravatar
Total Posts 31

Re: Content Managment & Menus

That'd be good.  I'm using CodeSmith for other development and started using the nTiers templates.  nTiers uses a db schema & generates multi-tiered structured code for all tiers including web & winform controls.  I'm working on modifying them the generated pages be mojoPortal pages or webparts.  Once I get that done, I may look at the your CM part a bit for some enhancements. I'm sure I'll bug you with some dumb q's. :)

Mole

9/26/2007 10:18:09 AM
Gravatar
Total Posts 18439

Re: Content Managment & Menus

Have you noticed the Codesmith templates included with the mojoPortal sourcecode?

I have generation scripts for stored procs, data access code, business classes and even some ui stubber templates for mojoPortal. They are meant only to help jump start development they do not generate completed features and are not meant for regeneration if you make a db change but I use them all the time and they make develoments faster for me whenever I'm working on new features.

Joe

9/26/2007 10:38:10 AM
Gravatar
Total Posts 31

Re: Content Managment & Menus

I did see your templates & have used them a little bit so far - more to come though.  I'm also using them as a basis to tweak ntiers.  nTiers suits my needs for the system i'm building at work.  I'd love to have any other templates you're currently using.

9/24/2009 8:36:35 AM
Gravatar
Total Posts 2

Re: Content Managment & Menus

I am new to mojoportal and am very much impressed with it. I am posting it in this thread as it is somewhat related. So I have a menu structure

Home

--Contact Us

Services

-- ServiceA

-- ServiceB (only available for select few customers) 

 How can I hide the page "ServiceB" and show it only when the role matches ? Note that I have custom roles

 

9/24/2009 2:11:11 PM
Gravatar
Total Posts 18439

Re: Content Managment & Menus

Go to the page settings (usually a gear icon up in the right corner depending on the skin) for the ServiceB page and set the view roles on that page only to the roles you want to be able to view the page. The  menu will filter according to view roles.

You can create custom roles under Administration > Role Administration, then add your select customers to a custom role and use this role for the view roles of the page.

Hope it helps,

Joe

9/25/2009 8:10:34 AM
Gravatar
Total Posts 2

Re: Content Managment & Menus

Thanks Joe for your answer. So I did the changes as suggested by you and now when I click on "ServiceB" from my example, I get a message "Sorry, you are not allowed to view this content. If you have questions about your permissions, please contact a site administrator." which is fair enough, but what I also want is that the link for ServiceB itself should not be shown in the first place

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.