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 ForumsXMLXMLPagination with XML module?Pagination with XML module?
Previous
 
Next
New Post
7/19/2007 12:19 PM
 

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.

 

 
New Post
7/19/2007 1:19 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 1:39 PM
 

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 2:46 PM
 

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

nice integer urls pointing to apple and pears   *grin*

 
New Post
7/26/2007 12:08 PM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLPagination with XML module?Pagination with XML module?


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