problem with Url rewriting

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.
4/12/2011 5:55:45 AM
Gravatar
Total Posts 2

problem with Url rewriting

Can combody tell me how url rewriting work in mojo Portal?

I have created a control which takes query string parameter to display data. Now created a page using mojo say "mypage.aspx". Now How can I set it to work?

4/13/2011 6:09:11 AM
Gravatar
Total Posts 18439

Re: problem with Url rewriting

Part of the problem could be because there exists an actual physical page MyPage.aspx so you should not create a virtual cms page with that url.

For developing custom features I generally avoid the need for query string parameters in the module control because it can live on a page with other features and should not expect to be able to control the url. I mean if there are multiple features on the page and they each need different query string params it gets messy and complicated. Generally in mojoPortal features if I need query string params I only use them on supporting pages of features, never on the cms page itself.

For example consider the forums feature. The forums module is the part that loads on a cms page /forums.aspx on this site and it has a list of forums, it does not use or expect any query string paramters (other than the pageid but this is hidden by the url rewriting) on the cms page, but if you click a forum it goes to a supporting page and passes all the needed query string params in the url to the supporting page. When using supporting pages you should always also pass the pageid and mid (module id) params to keep the context of the cms page and your feature instance.

See also Developer Documentation.

Hope it helps,

Joe

5/5/2011 4:06:30 AM
Gravatar
Total Posts 2

Re: problem with Url rewriting

what if I had an object and was using query string to control its state (e.g. JQueary tab and based on the query string value select the desired tab) ?

setting (?) in the url gets removed when page setting is saved.

 

Thanks,

Ali

5/5/2011 7:05:42 AM
Gravatar
Total Posts 18439

Re: problem with Url rewriting

jqueryui tabs can be selected by the anchor of the tab link like this url

http://www.mojoportal.com/form-wizard-pro-product.aspx#sysreq

but it is better to have the widget default to have the preferred tab open then the widget can control navigation and it does not need to be pre-appended in the url.

As I said above I would recommend avoid the use of query string params needed in the SiteModule part of the feature because there may be other things also on the page so no single feature should try to own the url. You can use query string params in supporting pages without any trouble.

Hope that helps,

Joe

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