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 ListXSLT - Link to Picture URLXSLT - Link to Picture URL
Previous
 
Next
New Post
8/24/2011 9:25 AM
 
Hello,
I'm trying to get an image URL link working properly within a XSLT layout sheet.  Below is the code I'm trying to use, but it's not working properly.

<td align="left" class="ContentInfo" valign="top" colspan="2">
  <img alt="Back Arrow" src="http://www.websiteURL.com/Portals/0/resources/images/icons/arrow_back.gif"/>&#160;External Website Link
</td>

Anyone have any ideas on how to accomplish this?  I've googled all morning and haven't been able to find a working example.
Thanks.. -Jeff
 
New Post
8/24/2011 10:58 AM
 
Why don't you wrap image and text with a link?

<td align="left" class="ContentInfo" valign="top" colspan="2">
<a href="http:///www.dotnetnuke.com">
  <img alt="Back Arrow" src="http://www.websiteURL.com/Portals/0/resources/images/icons/arrow_back.gif"/>&#160;External Website Link
</a>
</td>
 
New Post
8/24/2011 11:14 AM
 
Hi Stefan..
Thanks for the reply.
The table is configured for a three cell table row, except when certain circumstances occur; namely a check box on the form.  When it's checked, the first cell is there (to display the department information/link) and cells two and three are spanned.  It's within this spanned column that I'm trying to display the arrow icon and just normal text saying to check the external department link for further information.
Its just for some reason the XSLT bombs out if I try to add the image.
Thanks.. -Jeff

         <tr class="Normal">
          <td class="ContentInfo">
            <xsl:call-template name="EditLink" />
            <xsl:value-of select="udt:Department" disable-output-escaping="yes" />
          </td>
          <td align="left" class="ContentInfo" valign="top" colspan="2">
            <img alt="Back Arrow" src="http://www.websiteURL.com/Portals/0/resources/images/icons/arrow_back.gif"/>&#160;Check department link
          </td>
        </tr>
 
New Post
8/25/2011 11:21 AM
 
Man, there are days you don't think right..

<img alt="Back Arrow" src="http://www.websiteURL.com/Portals/0/resources/images/icons/arrow_back.gif"/>&#160;Check department link

I posted this line to the forums, but within my XSL file, I had a &nbsp; in front of the Check department link statement.  This is what was causing the error.  After replacing the &nbsp; with a &#160; it displayed the information correctly without erroring out.  UGH..

All's well and thank you for your assistance.. -Jeff

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXSLT - Link to Picture URLXSLT - Link to Picture URL


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