Creating an ASPX page under Mojo

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.
7/26/2011 6:26:29 AM
Gravatar
Total Posts 14

Creating an ASPX page under Mojo

Hello,

 

I created a new ASPX page "bar.aspx" under the Mojo folder "web", when I access it via http://locahost/bar.aspx it works fine.

I created a folder "fr" under the Mojo folder "web" and then I created a new ASPX page "foo.aspx" under this new folder  , so when I access it via http://locahost/fr/foo.aspx it works fine.

But when I activated "Multiple Sites Based on Folder Names" and mapped to the folder "fr", and then I try to access http://locahost/fr/foo.aspx, it shows this error "We're sorry but we could not find the page you are looking for. Please try the Site Map"

 

Regards


 

Tarek

7/26/2011 6:45:32 AM
Gravatar
Total Posts 18439

Re: Creating an ASPX page under Mojo

Folder based sites have virtual folders, the only reason ever to create an actual folder is to make it work with an url like siteroot/folder/ instead of siteroot/folder/Default.aspx, you could create the physical folder and put an empty Default.aspx file there to make it work with that url but other than that no files should be created in site folders.

Feature supporting pages should just go in the root or a feature specific folder. When you build links to your supporting pages use the SiteRootProprty of SiteModule to build your url like SiteRoot + "/foo.aspx"

then the virtual folder will be included in the url automatically in folder sites and it will work just like any other pages. You'll notice built in pages like /Admin/SiteSettings.aspx work in folder sites with /folder/Admin/SiteSettings.aspx we don't copy the pages into folders, it is not needed.

Hope that helps,

Joe

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