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 ListWhat is the best way to achive this layout ? What is the best way to achive this layout ?
Previous
 
Next
New Post
4/15/2008 3:00 PM
 

One example, not realy UDT:

Data:
<?xml version="1.0" encoding="utf-8" ?>
<items>
  <item>A</item>
  <item>B</item>
  <item>C</item>
  <item>D</item>
  <item>E</item>
  <item>F</item>
</items>

Script:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" indent="yes"/>
  <xsl:template match="items">
    <table>
      <xsl:for-each select ="item[position() mod 3 = 1]" >
        <xsl:variable name ="row" select ="position()"/>
        <tr>
          <td>
            <xsl:value-of select ="."/>
          </td>
          <td>
            <xsl:value-of select ="/items/item[($row -1)*3 +2]"/>
          </td>
          <td>
            <xsl:value-of select ="//item[($row -1)*3 +3]"/>
          </td>
        </tr>
      </xsl:for-each>
    </table>
  </xsl:template>
</xsl:stylesheet>

Returns

A B C
D E F

 
New Post
4/16/2008 3:43 AM
 

Hi Stefan,

Thanks for your response, but as you stated, this doesn't really help in the UDT world.  How can I get this to work for a stock standard UDT like: 

<UserDefinedTable>

  <Data>

    <Name>c0utta</Name>

  </Data>

</UserDefinedTable>

Is it the namespace (udt) that means I can't do this via apply-templates?

Any further ideas?

Thanks,

c0utta

 
New Post
9/27/2008 9:21 PM
 

Has anyone got this to work ?

Do you have sample code for UDT

 
New Post
12/31/2009 2:56 PM
 

 In my circumstances I needed to achieve the same result you are speaking of with a grid display. I was tasked with creating an employee directory that would show a photo and their information to the right (Name, Email, Phone, Department, Supervisor). I discovered that multiple columns wasn't going to work for this, so instead I created a custom template using the following html code making sure to choose List Type Division (from the default table)

 

<div style="float: left; width: 360px; padding: 5px; margin: 0 auto">
  <p>[UDT:EditLink]<IMG style="padding: 10px;" SRC="http://192.168.141.33/corptest/Portals/0/Employees/[FirstName]%20[LastName].jpg" ALT="[FirstName] [LastName]" align="left" HEIGHT="225" WIDTH="150"/><h3><br />[FirstName] [LastName]</h3><br />Phone Ext: [Telephone]<br />Email: [EmailCode]<br /><br /><strong>Department:</strong><br /><i> [DeptNick]</i><br /><br /><strong>Supervisor:</strong> <br /><i>[Supervisor]</i></p>

</div>

What this gives me is a floating table that expands to show more columns if there is space for them. Let me know if this helps you.

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListWhat is the best way to achive this layout ? What is the best way to achive this layout ?


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