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 ListUsing udt tokens inside xsltUsing udt tokens inside xslt
Previous
 
Next
New Post
7/26/2012 1:31 PM
 

Hi,

 Hoping someone is able to give me some advice,

 I am trying to create a rather "non-standard" display with the Form and list module.

What i want to create is a listing page with images that click through to another page. I have created a list with "Image" and "link" fields (one is type image, the other is URL and is set to "page on your site"

I've then created the following XSLT:

<xsl:template name="ImageLink">
        <a href="{udt:Link}">   <xsl:value-of select="udt:Teaser_x0020_Image" disable-output-escaping="yes" /></a>     
   </xsl:template>

While it outputs the image, it does't create the link correctly. It does add a link but it is filled with img tags for the breadcrumb and links to the parent page...

Does anyone know if there is a token that i can use to just get a url to the selected page?

 many thanks

John

 
New Post
7/26/2012 8:10 PM
 
Take a look at the HTML editor of the template system, the URL properties have 3 different formats if I recall correctly, check out the other two options, there is one specifically that will work for what you are trying to do.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
7/30/2012 4:37 AM
 
Hi Chris,

I just wanted to say thanks

I couldn't get it working with a field of type URL (page on your site) as all of the options returned the breadcrumb to the page, but changing it to an external url, then adding the full page path worked as i was able to use one of the tokens you pointed me to to get just the URL

Cheers!

John
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUsing udt tokens inside xsltUsing udt tokens inside xslt


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