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 ListGrouping and pagingGrouping and paging
Previous
 
Next
New Post
5/26/2009 3:42 PM
 

I need to be able to do grouping and paging. I need to have group headings with individual items listed beneath with a limited number of individual items listed beneath. After a page break, I need to repeat the name of the current group.

I have been successful grouping with the Muenchian method, and paging with the pre-defined XSL templates provided with the module. However, I can't combine the techniques. I think it would be possible if I had a node-set function from an XSL extension or an XSL 2.0 processor. Right now I'm running User Defined Table 3.05.01 on DotNetNuke 4.9. If I upgrade to a newer version of the module will I be able to accomplish my goal?

 
New Post
5/26/2009 4:46 PM
 

please be informed, that UDT 3.5.1 is current version of the module for all DNN 4 versions.

Successor form and List 5 requires DNN 5, which is not released for production yet.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/26/2009 4:56 PM
 

The XSL part in UDT and FnL is 99% the same.  Don't try to solve your problem using predfined scripts,please try to use custom scripts. Use thebuild in generator, which supports paging too. And for grouping, see http://www.formandlist.com/Documentation/Grouping.aspx

 
New Post
5/26/2009 6:19 PM
 

Thanks for your response Stefan. I didn't explain myself clearly. I can handle paging using custom scripts. The predefined scripts gave me a great jumping-off point for building my own. I have a pretty good understanding of XSL and Muenchiang grouping.

I'll try to expand on the example you linked to in the documentation. Imagine that instead of having seven cities, we have 25, and we wanted to display 10 cities on each page.

I could use something like this:

<xsl:apply-templates select="udt:Data[position()&gt;10 and position()&lt;21]">
   <xsl:sort select="udt:Country"/>
   <xsl:sort select="udt:City"/>
<xsl:apply-templates/>

Then I could have a matching template that would do grouping. The problem is, if the first France node in the data-by-country key has position 8 it will be excluded from my select. That would cause any other France nodes that have position() between 10-21 not to show up in the page.

If I do my grouping befire I do the paging, the position() function will tell me the city's position within the country. I need to know it's position within the whole list to make paging work.

If I had a node-set function, I think I could come up with a multi-pass solution. Is there any other way to reach my goal?

 
New Post
5/27/2009 8:15 AM
 

Interesting.

 What do you think about filtering inside key? I did not test it yet.

 <xsl:key name="data-by-country" match="udt:Data[position()&gt;10 and position()&lt;21]" use="udt:Country" />?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListGrouping and pagingGrouping and paging


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