Create Friendly Url

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/27/2011 8:59:37 AM
Gravatar
Total Posts 3

Create Friendly Url

Hi,

I have hundreds of records in my database table. I created a feature which shows details of records according to ID from query string. And I want to create a Friendly Url for all records.

So, how is it possible?

Thanks

 

7/28/2011 4:38:20 PM
Gravatar
Total Posts 355

Re: Create Friendly Url

Sanket,

Do you want to allow a user to edit the friendly URL, or is this a simple one-time automation process?

7/28/2011 11:37:31 PM
Gravatar
Total Posts 3

Re: Create Friendly Url

Hi Indigo,

Thanks for your reply.

In my case it's simple one-time automation process for existing records, but when new record is created, at that time it should also create new friendly URL for that also.

7/29/2011 12:50:28 AM
Gravatar
Total Posts 355

Re: Create Friendly Url

The best place for you to start is this article: Using Friendly Urls in Custom Features - when you're following through, and sorting out all the details, pay special attention to the FriendlyUrl class, and the FriendlyUrl table in the mojoPortal database.  I've done this for a custom feature, just like what you've described; the friendly URL is generated as a "suggested url" in the UI, and then submitted when the record is created for the feature.  As far as updating existing records; you may be best off writing a one-time custom SQL script for that, depending on what DB you're using, and what your comfort level is.

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