Moving the main menu to a different page (remove from layout.Master)

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/1/2010 2:36:18 PM
Gravatar
Total Posts 165

Moving the main menu to a different page (remove from layout.Master)

Hey Joe,

I want to to move the main menu with Register, Sign In, etc links to the 'Membership' page.

I'm speaking about http://test.dsatallahassee.org

Please advise how I can go about doing this, or if I can go about doing it.

Thanks,

Mark

6/1/2010 3:38:22 PM
Gravatar
Total Posts 550

Re: Moving the main menu to a different page (remove from layout.Master)

Hi Mark,

I think you can enable Allow Setting Skin for Page option under Administration->Site Settings. So you can have 2 separated skins, in main skin you can hide what you don't want appear and set it for site. and use current skin for a page (i.e Membership ) that you want those be appear.

Hope helps,

Asad

6/1/2010 5:09:39 PM
Gravatar
Total Posts 165

Re: Moving the main menu to a different page (remove from layout.Master)

Thanks Asad,

This is a step in the right direction for me, however what I'm trying to do is the following:

Within the Body of the Membership page, I want to show the menu (Register, Sign In, Etc.) as main links in the body of the page, not on top in the header.

More like buttons.

6/1/2010 9:00:27 PM
Gravatar
Total Posts 2188

Re: Moving the main menu to a different page (remove from layout.Master)

Hi Mark,

Those links are created by the controls inside the topnav div in your layout.master. You can move to wherever you like inside of the layout.master.

I would put them inside the <asp:panel id="divCenter"... control and wrap them in a special div (<div id="membershiplinks">...link controls...</div>). Set the CSS for "membershiplinks" to display:none. Create an HTML module on the membership page and add CSS to display the links (#membershiplinks: display:block;).

This solution would prevent you from needing to use multiple skins.

HTH,
Joe

6/2/2010 7:19:26 PM
Gravatar
Total Posts 165

Re: Moving the main menu to a different page (remove from layout.Master)

Hey Joe D.

Thanks for the information... I must be doing something wrong here.  All this is refering to (http://test.dsatallahassee.org/membership.aspx)

I first did the following and it moved them to the membership page and it displayed them but above the left column not within the content area:

<div class="art-content-layout-row">
<asp:Panel ID="divLeft" runat="server" CssClass="art-layout-cell art-sidebar1 leftside" Visible="True" SkinID="pnlPlain">
<div id="membershiplinks" class="linkcontrols">
<portal:WelcomeMessage ID="WelcomeMessage" runat="server" RenderAsListItem="false" ListItemCss="firstnav" />
<portal:HomeLink ID="HomeLink" runat="server" RenderAsListItem="false" />
<portal:SiteMapLink ID="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="false" />
<portal:MyPageLink ID="MyPageLink1" runat="server" RenderAsListItem="false" />
<portal:UserProfileLink ID="UserProfileLink" runat="server" RenderAsListItem="false" />
<portal:MailboxLink ID="MailboxLink1" runat="server" RenderAsListItem="false" />
<portal:MemberListLink ID="MemberListLink" runat="server" RenderAsListItem="false" />
<portal:RegisterLink ID="RegisterLink" runat="server" RenderAsListItem="false" />
<portal:LoginLink ID="LoginLink" runat="server" RenderAsListItem="false" />
<portal:LogoutLink ID="LogoutLink" runat="server" RenderAsListItem="false" />
</div>
<asp:ContentPlaceHolder ID="leftContent" runat="server">
</asp:ContentPlaceHolder>
</asp:Panel>
 

Then I did this and they just don't show at all:

<div class="art-content-layout-row">
<asp:Panel ID="divLeft" runat="server" CssClass="art-layout-cell art-sidebar1 leftside" Visible="True" SkinID="pnlPlain">
<asp:ContentPlaceHolder ID="leftContent" runat="server">
<div id="membershiplinks" class="linkcontrols">
<portal:WelcomeMessage ID="WelcomeMessage" runat="server" RenderAsListItem="false" ListItemCss="firstnav" />
<portal:HomeLink ID="HomeLink" runat="server" RenderAsListItem="false" />
<portal:SiteMapLink ID="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="false" />
<portal:MyPageLink ID="MyPageLink1" runat="server" RenderAsListItem="false" />
<portal:UserProfileLink ID="UserProfileLink" runat="server" RenderAsListItem="false" />
<portal:MailboxLink ID="MailboxLink1" runat="server" RenderAsListItem="false" />
<portal:MemberListLink ID="MemberListLink" runat="server" RenderAsListItem="false" />
<portal:RegisterLink ID="RegisterLink" runat="server" RenderAsListItem="false" />
<portal:LoginLink ID="LoginLink" runat="server" RenderAsListItem="false" />
<portal:LogoutLink ID="LogoutLink" runat="server" RenderAsListItem="false" />
</div>

</asp:ContentPlaceHolder>
</asp:Panel>
 

 

Now would I would like to be able to do is create buttons of some type that are the membership links.

 

6/2/2010 9:00:23 PM
Gravatar
Total Posts 2188

Re: Moving the main menu to a different page (remove from layout.Master)

Hi Mark,

The reason it appeared to not be within the content is that mojoPortal adds a bunch of markup to the modules to give them the Artisteer borders, backgrounds, etc. To get this effect, try using the below code:

<div class="art-content-layout-row">
<asp:Panel ID="divLeft" runat="server" CssClass="art-layout-cell art-sidebar1 leftside" Visible="True" SkinID="pnlPlain">
<div class="art-block">
<div class="art-block-tl"></div>
<div class="art-block-tr"></div>
<div class="art-block-bl"></div>
<div class="art-block-br"></div>
<div class="art-block-tc"></div>
<div class="art-block-bc"></div>
<div class="art-block-cl"></div>
<div class="art-block-cr"></div>
<div class="art-block-cc"></div>
<div class="art-block-body">
<div class="art-Post-inner">
<div class="art-blockheader">
<div class="l"></div>
<div class="r"></div>
<div class="art-header-tag-icon">
<div class="t">
<h2 class=" moduletitle">Login Controls</h2>
</div>
</div>
</div>
<div class="art-blockcontent">
<div class="art-blockcontent-tl"></div>
<div class="art-blockcontent-tr"></div>
<div class="art-blockcontent-bl"></div>
<div class="art-blockcontent-br"></div>
<div class="art-blockcontent-tc"></div>
<div class="art-blockcontent-bc"></div>
<div class="art-blockcontent-cl"></div>
<div class="art-blockcontent-cr"></div>
<div class="art-blockcontent-cc"></div>
<div class="art-blockcontent-body">
<div class=" modulecontent">
<div id="membershiplinks" class="linkcontrols">
<portal:WelcomeMessage ID="WelcomeMessage" runat="server" RenderAsListItem="false" ListItemCss="firstnav" />
<portal:HomeLink ID="HomeLink" runat="server" RenderAsListItem="false" />
<portal:SiteMapLink ID="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="false" />
<portal:MyPageLink ID="MyPageLink1" runat="server" RenderAsListItem="false" />
<portal:UserProfileLink ID="UserProfileLink" runat="server" RenderAsListItem="false" />
<portal:MailboxLink ID="MailboxLink1" runat="server" RenderAsListItem="false" />
<portal:MemberListLink ID="MemberListLink" runat="server" RenderAsListItem="false" />
<portal:RegisterLink ID="RegisterLink" runat="server" RenderAsListItem="false" />
<portal:LoginLink ID="LoginLink" runat="server" RenderAsListItem="false" />
<portal:LogoutLink ID="LogoutLink" runat="server" RenderAsListItem="false" />
</div>
</div>
<div class="modulefooter"></div>
</div>
<div class="cleared"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
<asp:ContentPlaceHolder ID="leftContent" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
</div>

As far as the button go, you will need to apply style to each individual link to hide the text but show a background image. I did this recently on this site: http://hyphensales.co.uk. Take a look at the Client Login button. There wasn't any text to hide in this case but you should be able to do this with some CSS trickery. Get the menu working and give the button a stab but I can help if you run into issues.

HTH,
Joe D.

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