Rank: Member
Joined: 10/9/2008(UTC) Posts: 45
|
Hi, We have a custom404.aspx page for our cart and we made it in custom pages. I want to get it out of our site map. Anyone know how to linit the sute map to all except this page? <H2>Content Pages</H2> <UL id=ctl00_MainContentHolder_ColumnTwo> * 404 FILE NOT FOUND</UL> I looked in the sitemap.aspx.vb and fount this: Private Sub LoadAllCustomPages() Dim pages As Collection(Of Content.CustomPage) = Content.CustomPage.FindAll() I think if i give it a limit like FindAll(<>custom404.aspx) Or something like that it should get all but that page. Any ideas? Thanks, Mark
|
|
|
|
Rank: Member
Joined: 9/20/2006(UTC) Posts: 92
|
Mark, Replace the LoadAllCustomPages() sub in SiteMap.aspx.vb with this code. Code: Private Sub LoadAllCustomPages() Dim pages As Collection(Of Content.CustomPage) = Content.CustomPage.FindAll()
For Each customPage As Content.CustomPage In pages If Not customPage.Name = "custom404.aspx" Then Me.ColumnTwo.Controls.Add(New LiteralControl("<li><a href=""" & Utilities.UrlRewriter.BuildUrlForCustomPage(customPage, Me.Page) & """ class=""actuator"">" & customPage.Name & "</a></li>"))
End If Next Me.ColumnTwo.Controls.Add(New LiteralControl("</ul>")) End Sub
Feel free to contact us via phone or email if you need further assistance. Wallace Miller -- Narrowpath Design
Providing installation, custom development, and design services for BVC5 sites 24/7 tech support and consultation service available for BVSoftware E-Commerce 760.728.8679 (phone) [email protected]
|
|
|
|
Rank: Member
Joined: 10/9/2008(UTC) Posts: 45
|
Hi Wayne,
Thanks for the answer. We will put it in now.
Thanks for the help on it.
Mark
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.