Remove items from top horizontal menu on all pages

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.
2/6/2012 8:03:51 PM
Gravatar
Total Posts 9

Remove items from top horizontal menu on all pages

Hello,

I am new to using MojoPortal and would like to remove the Site Map and Search links on the horizontal top menu that is displayed on all pages. I've searched the Forum and Master.Layout and can't seem to find the answer. Is this contained in Skins or in another Master.Layout or config file that I'm not finding?

2/6/2012 8:38:39 PM
Gravatar
Total Posts 550

Re: Remove items from top horizontal menu on all pages

Hi,

These links are in the layout.master file of your skin and you can remove those.See this section of the layout.master file and remove bold lines from it.

<div class="topnav">
<ul>
<portal:WelcomeMessage ID="WelcomeMessage" runat="server" RenderAsListItem="true"
ListItemCss="firstnav" />
<portal:HomeLink ID="HomeLink" runat="server" RenderAsListItem="true" />
<portal:SiteMapLink ID="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="true" />
<portal:MyPageLink ID="MyPageLink1" runat="server" RenderAsListItem="true" />
<portal:UserProfileLink ID="UserProfileLink" runat="server" RenderAsListItem="true" />
<portal:MailboxLink ID="MailboxLink1" runat="server" RenderAsListItem="true" />
<portal:MemberListLink ID="MemberListLink" runat="server" RenderAsListItem="true" />
<portal:SearchInput ID="SearchInput1" LinkOnly="True" RenderAsListItem="true" runat="server" />
<portal:RegisterLink ID="RegisterLink" runat="server" RenderAsListItem="true" />
<portal:LoginLink ID="LoginLink" runat="server" RenderAsListItem="true" />
<portal:LogoutLink ID="LogoutLink" runat="server" RenderAsListItem="true" />
</ul>
</div>

 

Hope Helps,

Asad

2/7/2012 8:29:31 AM
Gravatar
Total Posts 9

Re: Remove items from top horizontal menu on all pages

Thank you Asad for the prompt reply and information needed.

2/7/2012 2:15:01 PM
Gravatar
Total Posts 9

Re: Remove items from top horizontal menu on all pages

The suggestion of removing statements from Layout.Master for the skin didn't work. I stopped and restarted the IIS service and also rebooted the server. No go.

2/7/2012 2:42:50 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Remove items from top horizontal menu on all pages

Asad's suggested changes will definitely stop them from appearing in the list. Are you sure you edited the correct layout.master? If you are working with one site, it will be the one in /data/sites/1/skins/[skin name].

Jamie

2/7/2012 8:09:04 PM
Gravatar
Total Posts 9

Re: Remove items from top horizontal menu on all pages

Thanks Jamie.

It's working now.  I was modifying Layout.Maser in /data/skins and that's why it wasn't working.

Being new to MojoPortal is a great learning experience!

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