how to remove the default menu items in menu

Topics: ASP.NET 2.0
Jun 20, 2011 at 6:45 AM

sir,in the blog engine we add menu items dynamically,but in my case some default menus are added before i have added some menu items to remove the default menu items

Jun 20, 2011 at 6:48 AM

The menu items are probably either coming from the Web.Sitemap file in the root folder, or from the theme site.master file.  The theme site.master file would be located under /themes/(your theme name).

Jun 20, 2011 at 6:54 AM

thank you,sir but there is nothing related in web.sitemap file and i have removed all the statically added menu items only the code

<blog:PageMenu ID="PageMenu1" runat="Server" />

so that i can dynamically add menu items .

Jun 20, 2011 at 7:29 AM

What are the "default menu items" you are seeing?  Are they "Home", "Archive", "Contact" ... or something else?

Jun 20, 2011 at 8:49 AM

can u give any alternatives ,sir

Jun 20, 2011 at 8:50 AM


and with these login item

Jun 20, 2011 at 9:55 AM

ya sir these are the things present by default and with these another login item is present

Jun 20, 2011 at 5:33 PM

I would check the site.master file of your theme again.  What theme are you using btw?  For example, the Standard theme that is included with BE has the menu items for Home, Archive, Contact, Feed, etc in the site.master file.  The markup looks like what is below.  Most other themes work the same way with the menu items being in the site.master file.

  <li><a href="<%=Utils.AbsoluteWebRoot %>" rel="home"><%=Resources.labels.home %></a></li>
  <li><a href="<%=Utils.AbsoluteWebRoot %>archive.aspx"><%=Resources.labels.archive %></a></li>
  <li><a href="<%=Utils.AbsoluteWebRoot %>contact.aspx">< %></a></li>
  <li><a href="<%=Utils.FeedUrl %>" class="feed">
	  <img src="<%=Utils.ApplicationRelativeWebRoot %>pics/rssButton.png" alt="Feed" />
	  <%=Resources.labels.subscribe %></a>
	<a href="javascript:void(BlogEngine.filterByAPML())" class="apmlfilter">
	<%=Resources.labels.filterByApml %></a>
Jun 21, 2011 at 4:36 AM

sir i got the answer its because i have written pagemenu instead of pagelist.Thanks a lot,sir

Jun 21, 2011 at 5:01 AM

actually another one i wanted to ask u was suppose if i have a page called contact.aspx which needs to be linked to the dynamically added contact page .how it must b done.