any one can help me ?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/28/2012 2:33:26 AM
Gravatar
Total Posts 28

any one can help me ?

 I add some mneu:


 menu1   menu2  menu3

  menu11
  menu12
  menu13

 in menu13. I set another skin ,and in layout.master page ,set menusite's    StartingNodeOffset=1


  then I add an  blog module in menu13 and add some articles.

  the problem is  when I view these articles. the sitemenu doest appear.

  anyone can help me ?  thanks


 

12/29/2012 3:36:33 AM
Gravatar
Total Posts 28

Re: any one can help me ?

after about ten hours ,I slove the problem.

the solution is :

in mojoSiteMapProvider.cs        add some code like this :

  public override SiteMapNode CurrentNode
        {
            get
            {

                PageSettings a = CacheHelper.GetCurrentPage();

              
                SiteMapNode node = CreateSiteMapNode(a, 0);

                return node;
            }
        }

Thansk joe.    mojoporta is very excellent.    Sorry for my english  :)

12/29/2012 5:53:13 AM
Gravatar
Total Posts 18439

Re: any one can help me ?

You should NOT modify any mojoPortal code.

See SiteUtils.GetSiteMapNodeForPage(...

or

SiteUtils.GetCurrentPageSiteMapNode(...

12/29/2012 6:46:23 AM
Gravatar
Total Posts 28

Re: any one can help me ?

HI Joe .Thanks for your reply.

You are right.

but if I don't modify mojoSiteMapProvider.cs  ,I can't solve the problem.

I  only  used the sitemenu control  in layout.master.

I don't konw where to add the SiteUtils.GetCurrentPageSiteMapNode() code.

May be I should create another  SiteMapProvider or Sitemenu?     Thanks

 

12/29/2012 7:26:46 AM
Gravatar
Total Posts 18439

Re: any one can help me ?

I don't really understand your question or what you are trying to do. I suggest study the menu articles especially Menu Structure and Properties

Hope that helps,

Joe

12/29/2012 7:39:31 AM
Gravatar
Total Posts 28

Re: any one can help me ?

Hi  joy ,Thanks for your reply.

the article describe my scenario:

Visually Partitioning Sites So That Sections Appear To Be Separate Sites
 

I want to divide a site into sections that appear to be independent sites but have a common user base. 
 The example scenario below gives an idea of how to configure mojoPortal to meet these needs.

 University Site
--School of Foo (Section Home)
--School of Bar (Section home)
--School of Music (Section home)

 with each section having its own skin   In fact each section home has a split menu skins with a top horizntal menu showing sub sections within the section

 Basic steps:

 1. 2.3.....

 4. Set the StartingNodeOffset=1 on the top SiteMenu, this makes the
 top menu bind to node

 <portal:SiteMenu id="SiteMenu1" runat="server"
 UseTreeView="false"
 TopLevelOnly="true"
 StartingNodeOffset="1"
 Direction="Horizontal">
 </portal:SiteMenu>


in   section home,   I add  a module like  blog.  when I view the blog article ,in default. the sitemenu doesn't show.

Thanks

1/7/2013 11:06:01 PM
Gravatar
Total Posts 28

Re: any one can help me ?

public override SiteMapNode CurrentNode
        {
            get
            {

                PageSettings a = CacheHelper.GetCurrentPage();

              
                SiteMapNode node = CreateSiteMapNode(a, 0);

                return node;
            }
        }

the above code is wrong . the error message is  Multiple nodes with the same URL '/Default.aspx?pageid=292' were found.

 

   Now the right code is:

 public override SiteMapNode CurrentNode
        {
            get
            {
                SiteMapNode node = SiteUtils.GetCurrentPageSiteMapNode(rootNode);

                return node;
            }
        }

 

thanks  joe

1/8/2013 7:26:31 AM
Gravatar
Total Posts 18439

Re: any one can help me ?

As I said before, you should NOT modify any mojoPortal code. My advice is do NOT modify mojoSiteMapProvider.cs at all.

1/8/2013 8:44:51 AM
Gravatar
Total Posts 28

Re: any one can help me ?

Thank  you.

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