This project is read-only.

Getting Directory Listing instead of Page.

Sep 1, 2008 at 9:58 PM
I have no default.aspx page (not using it for the templateurl in any of my content items).

I have run the installer and created a rootpage and a startpage using my content class.
<N2.Details.WithEditableTitle("Title", 0)> _
<N2.Definition("HomePage")> _
Public Class HomePage
    Inherits N2.ContentItem
    Public Overrides ReadOnly Property TemplateUrl() As String
        Get
            Return "~\Themes\ChubNelson\N2\Home.aspx"
        End Get
    End Property
End Class
<N2.Details.WithEditableTitle("Title", 0)> _
<N2.Definition("RootPage")> _
Public Class RootPage
    Inherits N2.ContentItem

    Public Overrides ReadOnly Property TemplateUrl() As String
        Get
            Return "~\Themes\ChubNelson\N2\Home.aspx"
        End Get
    End Property

End Class

Why isn't the httpmodule sending me to the default page?
Sep 1, 2008 at 11:15 PM
The startpage is a kindof special case.

So far I've only been able to use ~/default.aspx as template for the start page. Also no rewriting takes place if you request the /(default.aspx) or if you request an existing file.

For now you're better off moving your /.../home.aspx  to /default.aspx. Sorry. I suspect fixing this will require abandoning the RewritePath route.
Apr 14, 2009 at 10:18 PM
from my expermintation it seems like you can make the start page anything you want as long as Default.aspx exists - even as an empty dummy page.
Apr 16, 2009 at 9:34 PM
Yeah, I found out as much and moved the start page of the templates project into the logical place.