Issue with ArtfulBits Image Upload Column

Dec 9, 2010 at 12:57 AM
Hi There,

I am trying to implement your expert news rotator. The functionality seems to be great, however I am using Artful Bits Image Upload column instead of the standard sharepoint one. My issue is that when the expert news rotator retrieves the URL value from the column, it sees it as: ;# [imageurlhere.jpg] ;#;#;#.

I posted on the artful bits support forum about removing the ;#, and they seem to believe that it is due to the way that the toString() method in your web part retrives the value.

Then suggested using the following method to retrieve the data value, so that it would work when using there web part. I think it would greatly expand the capabilities of your web part if it allowed for the use of artful bits image upload as they are now the largest image upload column seller.

 

Here is the method:

 if (this.TheColumnType.ToString() != "HyperLink")
{
// INSERT BLOCK START
SPFieldUrlValue spValue = item[this.ThumbImageURLField] as SPFieldUrlValue;
if (null != spValue && !string.IsNullOrEmpty( spValue.Url ))
{
   imageThumbURL = spValue.Url;
}
else
// INSERT BLOCK END
if (item[this.ThumbImageURLField].ToString().Trim() != string.Empty)
{
   imageThumbURL = item[this.ThumbImageURLField].ToString();
}
else
{
   imageThumbURL = this.ImageThumbURL;
}
}

 

It would be great if you could make this change for me as I would love to use this web part for my organization but currently can not.

Regards,

Chris.