Using FriendlyUrl with pattern

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/22/2010 11:39:23 PM
Gravatar
Total Posts 2

Using FriendlyUrl with pattern

Hi,

Likely my question is simple, but I could not figured out how to make the friendurl with patterns working. My need is to be able to rewrite a URL using Regex pattern (exemple Mysite/training/xxx.aspx=>MySite/trainingDetails.apsx?code=xxx). I was assuming that the "pattern" param was designed for that, but could not find out how to make it work. Looking at the code, I could it appears for me as being deactivated.

 

What's wrong in my understanding ? Isn't there the need of rewriting rules based on patterns ?

 

Thank's for any kind of answer.

 

Regards.

Chic

2/23/2010 6:12:10 AM
Gravatar
Total Posts 18439

Re: Using FriendlyUrl with pattern

Hi,

No, currently patterns are not supported. Urls are stored in the database in the mp_FriendlyUrls table as direct mappings, and also on pages in mp_Pages, and blog posts in mp_Blogs.

All pages in the menu map from /somefriendlyurl.aspx to /Default.aspx?pageid=x

Best,

Joe

2/23/2010 6:16:55 AM
Gravatar
Total Posts 2

Re: Using FriendlyUrl with pattern

Hi Joe,

 

thank's for your quick answer and this is what I understood from looking at the source code.  In another project, I used the urlrewriting module done by Albert Weinert and Thomas Bandt (http://www.urlrewriting.net/). This works fine with what I need, which is basically the automatic generation of friendly URL for a catalog of products (showing details, etc.). I'll need to have a look at mojo to see how I can plug this in a proper way.

 

thank's again for your answer.

Regards.

Chic

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