HomeHomeDotNetNuke Forg...DotNetNuke Forg...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 8: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/12/2006 11:33 PM
 

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>'


Stefan Cullmann
stefan.cullmann [at] gmail.com
http://www.formandlist.com
 
New Post
9/13/2006 12: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 1: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

 


Stefan Cullmann
stefan.cullmann [at] gmail.com
http://www.formandlist.com
 
New Post
9/13/2006 2:55 AM
 
hahaha.lolz.

Anyway, thanks a lot for this information.

Jared
 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsForm and ListForm and ListHelp! Using Calculated Column with <a href=""></a>Help! Using Calculated Column with


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.