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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListPaging and friendly URLsPaging and friendly URLs
Previous
 
Next
New Post
5/5/2008 11:54 AM
 

I generated an xslt template from html and checked the paging checkbox. The template was generated ok, but paging only works when friendly urls are enabled. I've got a portal where I don't want friendly urls. If I disable them, any click to the paging numbers or the next/first links just brings me to the home page of my portal. Has this been noticed, and is there a way to overcome it?


DotNetNuke them!
 
New Post
5/5/2008 12:21 PM
 
  1. No, it has not been noticed before
  2. If your URL is for example ..default.aspx?tabid=4711&foo=bar, you must replace every a href="? inside your XSL with a href="?tabid=4711&foo=bar&
 
New Post
5/5/2008 2:28 PM
 

The generated code for, let's say, the "next" url is like:

a href="?{$prefix_param}_page={$maxPages}"

This works well for friendly urls since it only adds the parameter to the end of the querystring, but if you don't use friendly urls it sends you to the default.aspx page with this parameter.

Let's suppose that I have this URL:

http://myhost/mydir/Default.aspx?tabid=64&language=en-US

then clicking the "next" link on my UDT generates a link like:

http://myhost/mydir/Default.aspx?udt_382_param_page=2 

instead of

http://myhost/mydir/Default.aspx?tabid=64&language=en-US&udt_382_param_page=2 

which, of course, sends me to the home page since the tabid parameter is now missing.

 

If I switch to friendly URLs, then my initial url becomes:

http://myhost/mydir/Home/UserDefinedTableTest/tabid/64/language/en-US/Default.aspx

and clicking on the "next" link on the UDT takes me to

http://myhost/mydir/Home/UserDefinedTableTest/tabid/64/language/en-US/Default.aspx?udt_382_param_page=2

which is, in my opinion, not correct, since the site is supposed to use friendly urls but paging is achieved via url parameters.

Note that I've used the "generate from HTML" feature of the UDT module and have produced an XSLT from a Table, doing nothing more to the XSLT itself. So, in my opinion, and as a conclusion the problem is double:

1. That when using non-friendly urls, generated paging does not work. I would have to hard-code the exact url of my page and append the "&{$prefix_param}_page={$maxPages}" string in order for it to work. That makes the generated XSLTs not portable. Is there a way I can get the whole querystring inside the generated XSLT (as a variable that is passed to the XSLT,perhaps?)

2. When using friendly urls, the paging is actually achieved using a querystring parameter, something which I consider wrong. I have no suggestion, though, for this part.

Could you please provide some help with point no.1?

 

 

 

 


DotNetNuke them!
 
New Post
5/5/2008 3:39 PM
Accepted Answer 

1. No, at least not not yet, at least not without a change to the source and a recompile. It would need to pass the querystrings as parameter into the XSL Transformation.  

2. As XSLT can't call DNN functions, it is the only way to go. I don't call it wrong, it makes no sense to put ever parameter into the url. 

 
New Post
5/5/2008 3:45 PM
 

As I said, it's only my opinion.

Well, there's no other way but to accept that generated XSLT paging will work only when friendly URLs are used. It would be nice to have the querystring as an XSLT parameter, though, in order to enable this kind of paging with friendly URLs disabled. Thank you for your time!

 


DotNetNuke them!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListPaging and friendly URLsPaging and friendly URLs


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