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  |  

telerik -- supercharge your DNN websites
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  User Defined Ta...  How do I use UDT as a phone book with letters bar
Previous Previous
 
Next Next
New Post 9/23/2008 2:27 PM
User is offline Yehuda Tiram,
128 posts
9th Ranked


How do I use UDT as a phone book with letters bar 

 

Hi,
I use UDT as a phone book. My client want to have this list sliced by the letters.
I thought that I can filter the list by the letters with an extra field. when a record is filled the first letter will be put in this field. Then the xsl file will show only the records that have a certain letter (Like y for Yehuda)
I used the following code to show only the correct records and it works for a fixed letter:
<xsl:template match="/udt:UserDefinedTable">
    <xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'Y')]" />
    <table>
      <xsl:apply-templates select="$currentData" mode="list">
      </xsl:apply-templates>
    </table>
 </xsl:template>
 
I thought that I'll put links in a bar for every letter and send a query string that will reload the xsl with the link letter instead of the "Y" in the example above.
 
My problem is that I do not know how to code the xsl correctly.
 
I am not even attempting to use a more sophisticated method like letting the xsl take the first letter from the name field (Instead of having the admin insert it manually to a special field, but if there's a way to do it will be great)
Thank you for any advice.
Yehuda.
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  User Defined Ta...  How do I use UDT as a phone book with letters bar
 


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.

 


$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com
ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl

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