Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Pagination with XML module?
Previous Previous
 
Next Next
New Post 7/16/2007 5:19 PM
User is offline Beanie
63 posts
10th Ranked


Pagination with XML module? 

Is anybody doing any sort of pagination with the XML module?

If so, how did you go about it?

 
New Post 7/17/2007 12:23 AM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: Pagination with XML module? 

I added XSLT based pagination for the new UDT release (3.4.0, currently in release tracker). It should be also doable with the XML module, using XSL parameter based on query strings.


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 7/18/2007 11:44 AM
User is offline Beanie
63 posts
10th Ranked


Re: Pagination with XML module? 

Hmm, okay.

I designed my XSL sheet to say there is page 1, 2, 3. I'm not sure what's to happen next. I'm not sure if the XML module allows for interaction, for example of my <a href="blah-url?page=1">1</a><a href="blah-url?page=2">2</a> <a href="blah-url?page=3">3</a>.

I see that the XML module has

Querystring Parameters

Querystring URL Encoding

Security Options

and then under XSL Transformation Settings

Link Type URL

XSL Parameters (none set)

Advanced Options

 Output inside module

 Content Type *.xml.

 

Is the idea of XSL parameters and Querystring Parameters only one way? That is the XML module will only send what ever I enter in to the parameter to either the XSL or XML document but not expect things to be sent back so that I can dynamicly accept something? Such as a page=1 if the user clicks 1, or page=2 if the user clicks to.

 
New Post 7/18/2007 4:19 PM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: Pagination with XML module? 

Maybe it will be better to write a blog, so here are the basics:

You add an Xsl parameter, name it "currentpage", data origin "querystring pass through", and enter "getPage" as argument for the data origin.

Inside your xsl, you query that parameter:

< xsl:parameter name="currentpage" select="1" />

Now let us imagine a XML data source containing 230 elements in /root/element (serialized datatable with 230 rows)
You will have a pagesize of 15 elements. 230\15 = 15,33 ->16 pages

< xsl:variable name="elementsPerPage" select="15" />
 <xsl:variable name="totalNumberOfPages" select="ceiling (count(/root/element)-$elementsPerPage)" />

output your data

< xsl:for-each select="/root/element[position() &gt; (($currentpage-1)*$elementsPerPage) and position() &lt;=  ($currentpage*$elementsPerPage) ] />
.....

ouput paging:

< a href="?getPage={$currentpage-1}" >prev < /a> < xsl:value-of select="$current" /> < a href="?getPage={$currentpage+1}" >next < /a>


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 7/19/2007 10:03 AM
User is offline Beanie
63 posts
10th Ranked


Re: Pagination with XML module? 

Yes, it worked!!!!! Thanks guys, your help is very much appreciated!!!! The XML module is a much more groovier module now that I know I can use the passthrough to send and recieve information to my XML generator.

Happy Snoopy Dance

I do have a suggestion or two though, instead of a blog, how about documentation? The About the XML/XSL Module doesn't explain anything like this, nor does the On Line help when On-line help is clicked. But I did find the Project Examples, which seemed a bit unclear to me while the above was more clearer. Might want to add that to your examples.

Something else, some what not related is that the text (page numbers) near little images for back, forward, and next get mucked up. Example I clicked Introduction To The XML/XSL Module Read More and it reports 3 of 3. Clicking the next and it says 100 of 3, clicking next then says 3 of 3. Somebody might want to look in to that, if that's what 4.5.4 RC3 does then yuck.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Pagination with XML module?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP