• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

mdomaille
#1 Posted : Friday, May 22, 2009 11:57:06 AM(UTC)
mdomaille

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(&lt;&gt;custom404.aspx) Or something like that it should get all but that page.

Any ideas?

Thanks,

Mark
Narrowpath
#2 Posted : Friday, May 22, 2009 11:40:23 PM(UTC)
Narrowpath

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("&lt;li&gt;&lt;a href=""" &amp; Utilities.UrlRewriter.BuildUrlForCustomPage(customPage, Me.Page) &amp; """ class=""actuator""&gt;" &amp; customPage.Name &amp; "&lt;/a&gt;&lt;/li&gt;"))

End If
Next
Me.ColumnTwo.Controls.Add(New LiteralControl("&lt;/ul&gt;"))
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]
mdomaille
#3 Posted : Tuesday, May 26, 2009 12:51:26 PM(UTC)
mdomaille

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012