Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  User Defined Ta...  URL Field
Previous Previous
 
Next Next
New Post 5/16/2008 12:15 PM
Resolved
User is offline ajsansone
183 posts
www.graphicsphere.net/
9th Ranked


URL Field 
Modified By ajsansone  on 7/6/2008 2:14:13 PM)

When I include the URL Column in my XSL List View, I get a link that is too long.

I want to href a ( website View Website ) link similar to the ( detail View Profile ) link.

Here's an example webpage with the ( website View Website ) link implemented but not working:
http://www.graphicsphere.net/Modelers/tabid/82/Default.aspx

Why doesn't this work?
When you click on the link it opens up in a new window with extra parameters in the address bar.

Another thing I could try is to change the URL Column to Text datatype but then I need an if statement
that removes the {udt:Website} text field from Sebastian's <xsl:for-each select="//udt:Fields"> statement.


Anthony John Sansone
Graphicsphere.Net, President
Palm Harbor, Florida, U.S.A.
http://www.graphicsphere.net
View Anthony J. Sansone's profile on LinkedIn
 
New Post 5/20/2008 8:06 PM
User is offline ajsansone
183 posts
www.graphicsphere.net/
9th Ranked


Re: URL Field 
Modified By ajsansone  on 5/24/2008 5:45:13 AM)

Here's my XSL List view code I need help with:

<xsl:template match="udt:Data" mode="list">
  <xsl:param name="from" select="1" />
  <xsl:param name="to" select="count(*)" />
  <xsl:variable name ="imgColumn" select="//udt:Fields[udt:FieldType='Image'][1]/udt:ValueColumn"/>
  <xsl:variable name ="titleColumn" select="//udt:Fields[udt:FieldType='String'][1]/udt:ValueColumn"/>
  <xsl:variable name="id" select="udt:UserDefinedRowId"/>
  <xsl:if test="position() &gt; $from and position() &lt; $to">
   <table cellspacing="0" cellpadding="4" width="400" style="border: silver 1px solid; border-collapse: collapse;">
    <tr>
     <td>
      <table cellspacing="0" cellpadding="2" border="0">
       <tr>
        <td>
         <xsl:call-template name="EditLink" />
        </td>
        <td valign="middle">
         <xsl:value-of select="//udt:Data[udt:UserDefinedRowId=$id]/*[name()=$imgColumn]" disable-output-escaping="yes"/>
        </td>
        <td>
         <table cellspacing="0" cellpadding="2" border="0" style="padding-left:2px;">
          <tr>
           <td>
            <strong>
             <xsl:value-of select="//udt:Data[udt:UserDefinedRowId=$id]/*[name()=$titleColumn]" disable-output-escaping="yes"/>
            </strong>
           </td>
          </tr>
          <tr>
           <td>
            <xsl:value-of select="udt:City" disable-output-escaping="yes" />, <xsl:value-of select="udt:State" disable-output-escaping="yes" />, <xsl:value-of select="udt:Country" disable-output-escaping="yes" />
           </td>
          </tr>
          <tr>
           <td>
             <xsl:call-template name="ViewProfile" /><xsl:call-template name="ViewWebsite" />
           </td>
          </tr>
         </table>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
   <br />
  </xsl:if>
 </xsl:template>
<xsl:template name="ViewWebsite">
  <a target="_blank" href="{udt:Website}">
    <img border="0" width="12" height="12" alt="website" src="{//udt:Context/udt:ApplicationPath}/images/icon_solutions_16px.gif" /><>View Website</font>
  </a>
</xsl:template>


Anthony John Sansone
Graphicsphere.Net, President
Palm Harbor, Florida, U.S.A.
http://www.graphicsphere.net
View Anthony J. Sansone's profile on LinkedIn
 
New Post 5/22/2008 2:22 AM
User is offline ajsansone
183 posts
www.graphicsphere.net/
9th Ranked


Need Help! How do you filter out a {udt:Website} Field in an XSL File? 
Modified By ajsansone  on 5/24/2008 5:53:52 AM)

The UDT Statement that prints out all the visible fields except the Image, Title & URL Columns:

<xsl:for-each select="//udt:Fields">
       <xsl:variable name="NameOfValueColumn" select="udt:ValueColumn"/>
       <xsl:variable name="CurrentValue" select="//udt:Data[udt:UserDefinedRowId=$id]/*[name()=$NameOfValueColumn]"/>
       <xsl:if test ="$CurrentValue and $CurrentValue!='' and ($NameOfValueColumn!=$imgColumn or not($imgColumn)) and ($NameOfValueColumn!=$urlColumn or not($urlColumn)) and ($NameOfValueColumn!=$titleColumn  or not($titleColumn)) and (udt:Visible='true' or udt:Visible='True')" >
        <tr>
         <xsl:if test="(position() mod 2 = 1)">
          <xsl:attribute name="bgcolor">#FFFFFF</xsl:attribute>
         </xsl:if>
         <td class="subhead" align="right" >
          <xsl:value-of select ="udt:FieldTitle"/>:
         </td>
         <td>&#160;</td>
         <td class="Normal" align="left">
          <xsl:choose>
           <xsl:when test="udt:FieldType='Currency'">
            <xsl:value-of select='format-number($CurrentValue, "$###,##0.00")' disable-output-escaping="yes"/>
           </xsl:when>
           <xsl:when test="udt:FieldType='Int32' and udt:FieldTitle!='Year'">
            <xsl:value-of select='format-number($CurrentValue, "###,##0")' disable-output-escaping="yes"/>
           </xsl:when>
           <xsl:otherwise>
            <xsl:value-of select="$CurrentValue" disable-output-escaping="yes"/>
           </xsl:otherwise>
          </xsl:choose>
         </td>
        </tr>
       </xsl:if>
      </xsl:for-each>


Anthony John Sansone
Graphicsphere.Net, President
Palm Harbor, Florida, U.S.A.
http://www.graphicsphere.net
View Anthony J. Sansone's profile on LinkedIn
 
New Post 5/23/2008 2:07 PM
User is offline Stefan Cullmann
1551 posts
5th Ranked








Re: Need Help! How do you filter out a {udt:Website} Field in an XSL File? 
Modified By Stefan Cullmann  on 5/23/2008 4:10:29 PM)

Please try  {udt:Website_UDT_Url}

Hidden columns are discribed inside documentation. There are also links to the hidden columns help inside manage udt and Token2Xsl editor. You can query the XML representation of the UDT data using the action menu.


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 5/23/2008 10:40 PM
User is offline ajsansone
183 posts
www.graphicsphere.net/
9th Ranked


Re: Need Help! How do you filter out a {udt:Website} Field in an XSL File? 
Modified By ajsansone  on 6/1/2008 11:55:02 AM)

Thanks, that worked perfectly. Even the linkclick.aspx works when the link is clicked.


Anthony John Sansone
Graphicsphere.Net, President
Palm Harbor, Florida, U.S.A.
http://www.graphicsphere.net
View Anthony J. Sansone's profile on LinkedIn
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  User Defined Ta...  URL Field
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca
MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP