Hello..
I'm trying something different than the conditional statement shown here;
http://www.dotnetnuke.com/Resources/F...
But just a quick overview. I have a column named
Icon and it's configured as a Image column. I have paired values configured for a list of values so for example the end-user selects
PDF, and it'll link to proper icon location of the paired value and when the list is viewed, the proper Icon is shown on the list.
For the layout, I'm using a table with one cell in a row. For items which are PDFs, I'd like left-side padding for the pdf file information and for items which are the ZIP files, I'd like them listed without the left-side padding. What this does is displays the month zip files at the top of the listing all the way to the left with the monthly pdf meeting mintues below it indented; a tree type look/feel.
I've tried a number of different things, but it's not working properly. Can some assist? Thanks.. -Jeff
If I try a
<xsl:if test="udt:Icon!='ZIP' or udt:Icon!='NoZip'"> statement, it displays the all the items twice; one without the left side padding and another listing of the same item with the padding.
If I try a
<xsl:choose><xsl:when test="udt:Icon!='ZIP' or udt:Icon!='NoZip'"> then all the items are listed once but there isn't any left-side padding for the PDF files.
I've tried changing the what to look for to the actualy URL's of the images, but this too didn't work properly. Below is the code for both configurations.
XSL:IF Statements:
<xsl:if test="udt:Icon!='Zip' or udt:Icon!='NoZip'">
<tr class="Normal">
<td>
<xsl:value-of select="udt:Board_x0020_of_x0020_Trustees" disable-output-escaping="yes" /> <xsl:call-template name="EditLink" /></td>
</tr>
</xsl:if>
<xsl:if test="udt:Icon!='PDF' or udt:Icon!='NoPDF' or udt:Icon!='Agenda'">
<tr class="Normal">
<td>
<div style="padding-left: 20px;">
<xsl:value-of select="udt:Board_x0020_of_x0020_Trustees" disable-output-escaping="yes" /> <xsl:call-template name="EditLink" />
</div>
</td>
</tr>
</xsl:if>
XSL:CHOOSE Statements:
<xsl:choose>
<xsl:when test="udt:Icon!='Zip' or udt:Icon!='NoZip'">
<tr class="Normal">
<td>
<xsl:value-of select="udt:Board_x0020_of_x0020_Trustees" disable-output-escaping="yes" /> <xsl:call-template name="EditLink" /></td>
</tr>
</xsl:when>
<xsl:when test="udt:Icon!='PDF' or udt:Icon!='NoPDF' or udt:Icon!='Agenda'">
<tr class="Normal">
<td>
<div style="padding-left: 20px;">
<xsl:value-of select="udt:Board_x0020_of_x0020_Trustees" disable-output-escaping="yes" /> <xsl:call-template name="EditLink" />
</div>
</td>
</tr>
</xsl:when>
</xsl:choose>