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  |  

Maximum ASP
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Pagination with XML module?
Previous Previous
 
Next Next
New Post 7/19/2007 10:19 AM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: Pagination with XML module? 

Being project lead means also that I am the only one who makes all the basic work, and I am working mostly in my spare time. Writing english documentation is harder for me than writing code, so I write code. I invite everybody to participate and to write a documentation, and I will assist as best as I can.

The DotNetNuke help is not written by me, and I can not change anything inside. In fact, as this also not localizeable, I ignore most time that it even exists.

 


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 11:19 AM
User is offline Beanie
63 posts
10th Ranked


Re: Pagination with XML module? 
Modified By Beanie  on 7/19/2007 1:22:27 PM)

Hmm, okay thanks Stefan. After I get my little gizmo working I'll see what I can do to give back to the community. :)

Darn, something is amiss or maybe I missed something.

In my XSL document I have the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    version="1.0">
<xsl:output method="html" version="3.2" encoding="US-ASCII"/>
<xsl:template match="listings">
 <xsl:param name="currentPage" select="1"/>
    <xsl:param name="pageNum_MyEmploymentListings" select="-1"/>
 <a href="{$pageNum_MyEmploymentListings}">Apple</a>
<a href="{$currentPage}">Pear</a>
 <table cellpadding="0" cellspacing="0"><tr><th>Job Title</th><th>Deadline</th></tr>
 <xsl:apply-templates select="listing">
  <xsl:sort order="descending" select="deadline"/>
    </xsl:apply-templates>
 </table>
<a href="http://10.10.0.7/Visitors/HumanResources/tabid/330/Default.aspx?pageNum_MyEmploymentListings=2">2</a>
 <xsl:apply-templates select="totalPages"/>
</xsl:template>
<xsl:template match="listing">
 <tr>
  <xsl:attribute name="style">
   font-size:small;
   <xsl:choose>
    <xsl:when test="position() mod 2 = 1">
     background-color:teal;
     color:white;
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
   </xsl:choose>
  </xsl:attribute>
  <td valign="top">
   <xsl:value-of select=".//jobTitle"/>
  </td>
  <td valign="top">
   <xsl:attribute name="style">
    font-size:small;
   </xsl:attribute>
   
   <xsl:value-of select=".//deadline"/>
  </td>
 </tr>
</xsl:template>
<xsl:template match="totalPages">
 Total Pages <xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>

In the XSL Transformation Settings, XSL Parameters I did the following:

pageNum_MyEmploymentListings static 36

currentPage static 18

Shouldn't $currentPage be 18 instead of 1?

 

 
New Post 7/19/2007 11:39 AM
User is offline Beanie
63 posts
10th Ranked


Re: Pagination with XML module? 

I think I figured it out.

If I change <xsl:param name="pageNum_MyEmploymentListings" select="-1"/> to <xsl:param name="pageNum_MyEmploymentListings"/> it some how magicly gets the value, don't ask me how. I even went so far to remove any sort of XSL Parameters from the list leaving only the Querystring Parameters. Baffling. :)

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








Re: Pagination with XML module? 

Make the parameters global; place them directly after xsl:output.

nice integer urls pointing to apple and pears   *grin*


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/26/2007 10:08 AM
User is offline Beanie
63 posts
10th Ranked


Re: Pagination with XML module? 

Oooh, spiffy thanks for the tip.

Got pagination working! Shame I can't use (or perhaps figure out) spiffy AJAX (or what ever DNN uses to do some magic) to do post-backs to make it neater looking. No matter, works for me just have to refresh the entire page when doing it. :|

Just got one more stumbling block, but that's a new thread. :)

By the way, when that Notifcation? checkbox at the end is checked, isn't the site suppose to send an email saying somebody posted a reply? I'll check anti-spam stuff on my end just to make sure it isn't getting gobbled up.

 
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.

 


ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com
Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca
MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com

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