Need Friendly URLs for Users Profile Page

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/19/2012 11:36:25 PM
Gravatar
Total Posts 4

Need Friendly URLs for Users Profile Page

Hi Mojo Guys,

I have a website where we have some users who are member of an AGENT group.  On the website, we are listing all the users who are part of Agents Group.  Users need to be able to select an Agent from the list and Agent Details page opens up with specific information about that agent.  I would like to create a FriendlyURL for the detail page.  Currently the URL looks like /AgentDetail.aspx?AgentID=60 but I would like to change it to look something like /AgentDetail-Joe-Davis-60.aspx.

Now I did some reading online on mojoDocs and looks like when saving a blog post or something you can use the GUID to save a FriendlyURL in the table, but how can I do that when users are being added and added to the Agents Group?

Thanks.

4/27/2012 2:20:26 PM
Gravatar
Total Posts 4

Re: Need Friendly URLs for Users Profile Page

I have a website that I need urgent help with. The issue is not that big and it has to do with Friendly URL. I basically created a SiteModuleControl that lists all users in the system that have a AgentID assigned to them. AgentID is simply a property in the profile. Visitors can click on an Agents Name which redirects the to an Agent Detail Page where they see all the necessary information pertaining to the Agent. The redirected page is also a mojoPage with an Agent Detail module control. So its not a custom page, uses mojo page and just an added module. The redirect looks like ~/AgentDetail.aspx?AgentID=10. My client wants SEO friendly url's so they want something like ~/AgentDetail-Mansoor-Lakhani.aspx. When I try to add manual entry in FriendlyURL table I get 404 error. I see that the Session context and everything becomes whacked out. The way I entered the entry is that I generated a random Guid for PageID and a random Guid for Item ID. Is that the correct way?

4/27/2012 2:41:09 PM
Gravatar
Total Posts 18439

Re: Need Friendly URLs for Users Profile Page

CMS page friendly urls map to the real url /Default.aspx?pageid=x

You should not pass extra paramters to CMS page friendly urls and you cannot make friendly urls that point to other friendly urls.

You should build a custom feature with a supporting page instead of trying to do everything in the module control on the CMS page. The module control is the entry point for your feature but for complex features you need to use supporting pages.

The real url for your supporting page would be formatted as /featurefolder/yourpage.aspx?pageid=x&mid=y&agentid=z

Then you can programatically create friendly urls that map to your real url

This is exactly how the blog works, the blog detail is really:

/Blog/BlogView.aspx?pageid=x&mid=y&ItemID=z

but when posts are created we programatically create friendly urls, the friendly url is also stored on the blog itself so that we can build links to the friendly url pages within the blog.

Study the source code of the blog and webstore which also uses friendly urls for products to learn how to implement it for your own feature

Hope that helps,

Joe

4/27/2012 4:44:23 PM
Gravatar
Total Posts 4

Re: Need Friendly URLs for Users Profile Page

Hi Joe and thanks for the quick response. I don't know if there are any qualified devs that could work on this for me. I personally don't have time right now to go through Blog code to figure it out. Is this something you could do or know someone I can contact to get done. I don't mind paying.

Thanks.

4/27/2012 5:25:45 PM
Gravatar
Total Posts 2239

Re: Need Friendly URLs for Users Profile Page

Hi,

Give me a call or send me an email. We are very well versed in all things mojo and we have done similar things to what you are asking to do.

816-399-3714

joe (at) i7media (dot) net

I look forward to hearing from you.

-Joe Davis

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