Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...format TabName to URL friendly format format TabName to URL friendly format
Previous
 
Next
New Post
7/22/2009 5:14 AM
 

Hi,

Is the function that formats the TabName to a URL friendly format in the MachineFriendlyURLProvider also publicly available in the DNN API?

I want to use this in my module for specifying additional querystring formatting.

Thanks!

 
New Post
7/22/2009 11:17 AM
 

Hi Rudgr,

The many overloads of the DotNetNuke.Common.Globals.NavigateURL method are where you'll want to look for this functionality.  In my experience, the following are the most commonly used:
   NavigateURL(string.Empty, "MyName", "MyValue") -> Creates a url to the current page, no focus on any particular module, with a MyName=MyValue querystring
   NavigateURL(tabId, string.Empty, "MyName", "MyValue") -> Creates a url for the given tabId with MyName=MyValue querystring

And less often,

   NavigateURL("MyControlKey", "MyName", "MyValue") -> Creates a url for the current page, with the control key as focus, and MyName=MyValue querystring
Note that you can string together as many querystring key/value pairs as you wish.

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
7/27/2009 6:42 AM
 

Hi Brian,

Thanks for your reply!

Somehow I didn't receive the forum notifications, so I could not respond earlier.

I know about the NavigateURL() overloads, but I mean a different function.

Suppose you give a DNN tab a name of "Home & Test$$$".

The machine and human friendly url provider changes this tabname in the link to a URL friendly name:

http://localhost/dcmodules/HomeTest/tabid/36/language/en-US/Default.aspx

I want to use the function that's responsible for that conversion in my own module project.

Thanks!

Rutger

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...format TabName to URL friendly format format TabName to URL friendly format


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out