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 Listhtml, xlt problemhtml, xlt problem
Previous
 
Next
New Post
2/1/2008 2:11 PM
 

I got a UDT created without any problem.  It shows ok with the predefined xls settings.  All I want to do is have the header a certain background color and column size.  I know how to do it in html, so I Generate New xls file.  I read the whole manual.  Problem is that I get a header before every new record.  This is how my code looks:

<tr border="1" cellspacing="0" cellpadding="3" class="normalbold" bgcolor="#ffff99">

<th></th><th>Date</th><th>Meeting Chair</th><th>Meeting Agenda</th><th>Presentation</th><th>Action Items</th>

</tr>

<tr border="1" cellspacing="0" cellpadding="3" class="normal">

  <td>[UDT:EditLink]</td>

  <td>[Date_UDT_Value]</td>

  <td>[Meeting Chair]</td>

  <td>[Meeting Agenda]</td>

  <td>[Meeting Presentation]</td>

  <td>[Action Items]</td>

</tr>

I know this is simple but I cannot figure it out.

 

thanks

Miriam


 

 
New Post
2/2/2008 4:30 AM
Accepted Answer 

You place the header inside the token template. This token template gets repeated for ever single record.

The trick is to place the header row directly into the created XSL:
...
< xsl:template match="/udt:UserDefinedTable">
< xsl:variable name="currentData" select="udt:Data" />
< table>
< tr border="1" cellspacing="0" cellpadding="3" class="normalbold" bgcolor="#ffff99">
< th></th>< th>Date< /th>< th>Meeting Chair< /th>< th>Meeting Agenda< /th>< th>Presentation< /th>< th>Action Items< /th>
< /tr>
< xsl:apply-templates select="$currentData" mode="list">
< /xsl:apply-templates>
< /table>
< /xsl:template> 

The XSL may look different if you enbale some more options, however the template needs to be placed inside the udt:UserDefinedTable directly before the call of the list template.

 

 
New Post
2/2/2008 5:41 PM
 

thanks a bunch.  That was easy. 

 
New Post
2/7/2008 2:34 PM
 

Stefan,

Thanks for posting that.  I tried to see if I could do this after the original poster submitted their question.  I knew it was possible (because I've done it before), but kept putting my code in the wrong place.

It would be great if in the XSLT wizard, there was an option for "header" and "footer" to make things easier.

 
New Post
4/22/2008 10:51 PM
 

Stefan,

After months of doing fine with the instructions above, I figured out that there were indeed other "options".  I follow you instructions in detail, and although I'm able to get the header row, the fields do not sort or can't be clicked.  Any suggestions?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listhtml, xlt problemhtml, xlt problem


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