Collapse ChildPageMenu

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
6/1/2011 7:34:31 AM
Gravatar
Total Posts 10

Collapse ChildPageMenu

Hi,

I am looking for a setting to collapse all nodes in ChildPageMenu for certain pages. The ChildPageMenu gets confusing if all nodes of a larger hierarchy are expanded.

Thanks,

Lars

6/1/2011 7:57:00 AM
Gravatar
Total Posts 18439

Re: Collapse ChildPageMenu

Hi Lars,

Adding something like this to your theme.skin file should do the trick:

<portal:mojoTreeView runat="server" SkinID="ChildSiteMap"
   ExpandDepth="0"
   ShowExpandCollapse="true"
  />

or if your theme.skin already has this tag just update the properties on the existing tag.

However that would affect all child page site maps, it is not page specific. We do have a setting in page settings for "Expand on Site Map", however this currently only affects the main site map page. I'm looking at making it possible to use the same setting on the child page site map in the future.

Hope that helps,

Joe

8/31/2011 10:19:34 AM
Gravatar
Total Posts 10

Re: Collapse ChildPageMenu

Hi Joe,

thanks a lot for your quick reply, which I somehow didn't notice till yesterday.

You sure pointed to the right spot, but I somehow can't get it to work. Changing the theme.skin file does not affect the style of my page at all. I even deleted it and used theme.skin files from other skins.

Caching is disabled and changes to the css and master files work fine but the theme.skin seems to be ignored.

Any ideas what I could be overlooking?

Mojoportal 2.3.6.7 MSSQL, .net 4.0

 

8/31/2011 12:29:42 PM
Gravatar
Total Posts 18439

Re: Collapse ChildPageMenu

Hi Lars,

The theme gets cached by the ASP.NET runtime no matter what we do. By design changes to the file should cause it to clear the cache but I have seen cases where it seemed not to work and the cache was very stubborn. Any modification to the Web.config file should also clear the theme from cache but I do remember one occasion where even that didn't seem to work and it took a reboot. I've never figured out why that happens sometimes and other times it just works as it should.

In the latest version there is also a setting in PageSettings for "Expand on SiteMap" which allows having some pages collapsed on the main site map and there is a themeable property to make the Child Pages site map use the same page setting. For example on this site I have the page Building a Guestbook Video Series (in developer documentation section) collapsed. This is done by the following settings in my theme.skin file:

<portal:ChildPagesSiteMap runat="server"
HonorSiteMapExpandSettings="true"
/>
  
<portal:mojoTreeView runat="server" SkinID="ChildSiteMap"
  ContainerCssClass="sitemap"
  RootUlCssClass="childpagesitemap"
  RenderLiCssClasses="false"
  RenderAnchorCss="true"
  LiCssClass=""
  LiRootExpandableCssClass=""
  LiRootNonExpandableCssClass=""
  LiNonRootExpnadableCssClass=""
  LiSelectedCssClass=""
  LiChildSelectedCssClass=""
  LiParentSelectedCssClass=""
  AnchorCssClass=""
  AnchorSelectedCssClass=""
  ExpandDepth="-1"
  ShowExpandCollapse="true"
  PopulateNodesFromClient="false"

/>

Hope that helps,

Joe

9/1/2011 6:17:57 AM
Gravatar
Total Posts 10

Re: Collapse ChildPageMenu

Thanks a lot for pointing that out, I didn't think cache could be this stubborn. - Rookie mistake I guess.

Neither changing the web.config nor reboot helps in my case. I have to create a new skin with the changed theme.skin, once the skin is cached it will ignore changes to the theme.skin file. Must be some specialty here at my place so don't worry about it. Since I don't plan on changing the theme.skin much the way it works is fine for me.

Thanks for the great support !

regards

Lars

 

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