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 ListHelp! Using Calculated Column with <a href=""></a>Help! Using Calculated Column with
Previous
 
Next
New Post
9/12/2006 11:30 PM
 
Hello everyone!
I hope someone could help me.

I'm new to this UDT. I'm trying to make a column wherein the text is a URL link.
Here are my columns:

Title        Type                      Extended Settings
=======================================
Title        Text
LinkURL   URL
LinkTitle  Calculated Column  '<a href="' + LinkURL + '">' + Title + ' </a>'

I can't make it to work.
For example,
Title=NBA
LinkURL=http://www.nba.com

I was hoping my LinkTitle should be
<a href="http://www.nba.com">NBA</a>

But it's outputting as www.nba.com>NBA with the www.nba.com part pointing to http://localhost/dotnetnuke2/rosettanet/a/tabid/244/%3Ca%20href=

It seems it's being cut on the href tag.
Am I missing something here?

Any help would be greatly appreciated.
Thanks!

Jared
 
New Post
9/13/2006 2:33 AM
 

Ok, there happens some undocumented voodoo.

During rendering time the url value doesn't contain the original url but a complete link string.

But there are some more invisible columns you can use. All url datatypes will have three columns in the underlaying dataset:

ColumnName complete link (that one which is displayed when the column is visible)
ColumnName_UDT_Url underlaying url inside link
ColumnName_UDT_Original value saved in database

So in your case the desired string for calculated column is

'<a href="' + LinkURL_UDT_Url + '">' + Title + ' </a>'

 
New Post
9/13/2006 3:34 AM
 
Hi Stefan!
Thanks for the quick response.
You've been an absolute help!

Made it to work.
Thanks a lot!

One last thing, is there any chance that there would be a more detailed documentation in the near future that contains these kind of information?
Just hoping. It would really help us all, especially us newbies.
Thanks!

Jared
 
New Post
9/13/2006 4:57 AM
 

Sebastian will hit me that I did not include this information before

ColumName ColumnName
+ _UDT_Original
ColumnName
+ _UDT_Value
ColumnName
+ _UDT_Url
Boolean Image [(un)checked.gif] true'/'false' - -
Changed At Date - Localised Date -
Changed by Display Name UserName - -
Created At Date - Localised Date -
Created By Display Name UserName - -
Currency Value - - -
Date Date - Localised Date -
DateTime Date Time - Localised DateTime -
Decimal Value - - -
Download Html Link Value - Url
Email Html Link Value - mailto:Value
Expression Result of Expression - - -
Image Html Image value - Url of Image
Int32 Value - - -
String Value - - -
TextHtml Value - - -
Url Html Link value - Url

 

 
New Post
9/13/2006 5:55 AM
 
hahaha.lolz.

Anyway, thanks a lot for this information.

Jared
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHelp! Using Calculated Column with <a href=""></a>Help! Using Calculated Column with


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