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 ListXSL for UDTXSL for UDT
Previous
 
Next
New Post
11/10/2006 1:05 PM
 
This is Only if you have the time. But it would answer a lot of questions I came up with. Below I have entered a simple html table that I would like the xsl to look like (very simular to the contact one the UDT comes with). I would like to see how to make one when related to column titles.

<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="132">Image</td>
    <td width="468"><p><strong>Fname</strong> <strong>Lname</strong><br>
        <em>Title</em></p>
    <p>Biography</p>
    <p>email </p></td>
  </tr>
</table>
-----------------------------
<edit>

I think I got it! I a playing with xml sheets now. The only thing I wonder is how do I make my udt a downlaodable xml so I play with it on my local machine.

<edit... again>

Duh - Export! - thanks. :-)
 
New Post
11/10/2006 6:15 PM
 

Gabe, export will give you not the same xml as for rendering. Most kind of custom scripts will work though.

UDT3.3.6 has an option showXml below the url control for custom stylesheets inside manageUDT.

 
New Post
11/13/2006 10:38 PM
 
I can't seem to get it. I have worked with XML notepad, Dreamweaver, and Notepad and I just can't get it to work. So I was wondering if someone has made a XSL that was made to specific columns? I could take that work and reverse engineer it to make it work for me. I have my column names is a previous post, but don't expect anyone to custom make it for me.  Well - I will keep hacking away at it. Good thing I love this stuff - thanks again!

Gabe
 
New Post
11/14/2006 2:19 AM
 

Gabe, my first answer inside this thread contained a very simple stylesheet that is working for a UDT with the columns Name, LastName and Titel (sorrry misspelled or german for Title).

<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:udt="DotNetNuke/UserDefinedTable">
   <xsl:template match="/udt:UserDefinedTable">
      <xsl:for-each select="udt:Data">
        <strong><xsl:value-of select="udt:Name" /> <xsl:value-of select="udt:LastName" /></strong>
        <br><xsl:value-of select="udt:Titel" />
      </xsl:for-each> 
   </xsl:template>
</xsl:stylesheet>

if you want to render it in a table:

<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:udt="DotNetNuke/UserDefinedTable">
   <xsl:template match="/udt:UserDefinedTable">
      <table>

         <xsl:for-each select="udt:Data">
           <tr>
              <td>
                 <strong><xsl:value-of select="udt:Name" /> <xsl:value-of select="udt:LastName" /></strong>
              </td>
              <td>
                 <xsl:value-of select="udt:Titel" />
              </td>
           </tr>
         </xsl:for-each>
      </table> 
   </xsl:template>
</xsl:stylesheet>

I don't know any free XSL ide which is free, but there are a lot of trial versions aviable, for example for:

  • VisualStudio 2005 (>=Standard Edition)
  • Altova Xml Spy
  • Stylus Studio
  • ....

I recommend the w3 school as a good start into learning XSLT.

Advanced sample regarding udt: http://www.dotnetnuke.com/tabid/825/EntryID/1038/Default.aspx

 
New Post
11/14/2006 3:51 AM
 
With everything else I have been doing, I completely forgot about that post. Sorry about that - thanks again. I have Visual Studio 2005 - just got it about a month ago. I didn't realize it had that feature, heck, I don't know anything about it yet - working too much with DNN. I will look into it though.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXSL for UDTXSL for UDT


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