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.
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.
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
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 :)
You should NOT modify any mojoPortal code.
See SiteUtils.GetSiteMapNodeForPage(...
or
SiteUtils.GetCurrentPageSiteMapNode(...
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
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
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
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);
thanks joe
As I said before, you should NOT modify any mojoPortal code. My advice is do NOT modify mojoSiteMapProvider.cs at all.
Thank you.