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/9/2006 2:04 PM
 

I was wondering if there was an area on this board, or somewhere else that people can (or has?) post their own XSL sheets for everyone to use? I can't make heads or tails from reprogramming it - and would love to see something like that. For instance, I love your contact XSL form. The only problem is I would also like a "Title" to go under the heading Name, and I would like to seporate the name to first and last, rather than all under the first "text". I don't even know if that is possible.

I have gotten it to work wonderfully, but I will have to do any future contact updates. I don't think I can count on me laymen (more so than I) employees to keep their information up to date, unless it was as simple as: Name, last Name, title. Now I have something like this in the first title (which works) : "<strong>Steve Smith</strong><br>President".

Thanks!

Gabe

PS - Is there a way we can turn off the feature of it listing column Titles (i.e. "Email:" and "Biography:")

 

 
New Post
11/9/2006 4:34 PM
 

Gabe, you can create every output as you like using XSLT. I know that the current included XSL Style Sheets are difficult to adjust on your purposes. This is related to its generic nature - it should work with every definition of udt.

Writing custom Xsl Stylesheets is a lot easier task as you know your columns. There is no need for checking the fields definition if you know it.

Can you write your desired output in html? Writing xsl is not much more difficult if you know your schema.

Take as example "<strong>Steve Smith</strong><br>President". If we would have simple [TOKEN] language you would write

<strong>[NAME] [LASTNAME]</strong>
<br>[TITEL]

but now you need to deal with the udt and xsl:

<strong><xsl:value-of select="udt:Name" /> <xsl:value-of select="udt:LastName" /></strong>
<br><xsl:value-of select="udt:Titel" />

There are some more steps, but a final script looks like:

<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>

UDT3.3.7 will come with an updated documentation and contains some more information you will need writing powerfull scripts.

PS: I like the idea of a public script repository

 
New Post
11/10/2006 4:48 AM
 

Gabe,

thank you for your suggestion. I will discuss this with the site admininstrators, meanwhile anyone can send his XSL and I will post it in the Additional Documents area.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/10/2006 10:54 AM
 
Thank you for your help - that goes above and beyond! I will spend a lot of time today playing with it, when I should be doing something else

I write HTML - and now that I can see  the logic, I can play with it.  thanks again!

On a side note- I have dreamweaver 8- is there an easy way to write the XSL - or should I just do it in Notepad.

Thanks again!
 
New Post
11/10/2006 11:30 AM
 

arcanjl2 wrote
On a side note- I have dreamweaver 8- is there an easy way to write the XSL - or should I just do it in Notepad.

Try Microsoft XML Notepad and Altova XML Spy (XMLSpy Home Edition 2006 had been free before - try to find it at a freeware server, where it might be still available)


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
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