Blogs Forums separate directory

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.
9/13/2012 6:33:37 AM
Gravatar
Total Posts 32

Blogs Forums separate directory

Hi,

this seems like a silly question. I noticed on the mojoportal site, the blog and the forum have the format  domain/blog and domain/Forums with all the pages created within these directories. How do I achieve this?

Thanks

 

9/13/2012 6:45:02 AM
Gravatar
Total Posts 192

Re: Blogs Forums separate directory

Blog and Forum are two of the features of mojoPortal, and the pages you see that are created beneath them, are real pages.

custom pages you create are just URLs which point to special pages with some parameters. and well, all pages that you create are virtual pages. but pages you see that include /Forums or /Blog in the URL are not virtual pages, they are asp.net pages that exist on the hard disk.

now, what do you want to achieve?

you want to create pages that seem like "mycustomname/mypage" ?

simple create a page with this name! if you want more pages, create more pages which have the "mycustomename/" preceding.

but if you want to create a feature, like a blog, or a forum, or a galley, which has supporting pages under a special folder, you will need to learn how to add new features.

9/13/2012 6:52:44 AM
Gravatar
Total Posts 32

Re: Blogs Forums separate directory

Paiman, thanks for your reply.

I want to achieve the following:

mydomain/blog/mypage.aspx or mydomain/forum/mypage.aspx

I thought there was an automated method of putting the /blog or /forum as prefix

Thanks again.

 

9/13/2012 10:15:06 AM
Gravatar
Total Posts 1196
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Blogs Forums separate directory

What you're seeing on this site is actually an illusion. The reason you see www.mojoportal.com/blog is that the page is named "blog.aspx", and the site is configured for Extensionless URLs, which removes the .aspx portion of the URL. If you go to a blog post and click the title of the post, rather than the mojoportal.com/blog/post that you're expecting, it will be mojoportal.com/post. The reason for this is that mojoPortal doesn't support extra segments in URLs. It's better to just think of your site as a bunch of pages where the organization is provided by and easily rearranged in the site menu, not in the file system (that's old-school HTML file thinking).

I hope this helps.

Jamie

9/14/2012 3:36:53 AM
Gravatar
Total Posts 32

Re: Blogs Forums separate directory

Thanks Jamie

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