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 ForumsEventsEventsFrom "FileID=1" to "aspnet.gif": how?From "FileID=1" to "aspnet.gif": how?
Previous
 
Next
New Post
3/13/2006 4:33 AM
 
Hi all,

I've started creating a module called Extracts for a client which will contain several strings plus an image and a URL. Its purpose is to display a short version of an article in a homepage, while clicking on the URL will drive to the full article's page.

Well, for that I'm using Events module as a base and I'm stucked in a point I hope you can take me out of. While saving (and uploading) the image is done well (I get "FileID=..." in the corresponding DB field), I seem to fail to display that image. I use FormatImage function but that only adds domain and path to "FileID..." string. I can't find the way to transform that into its correspoding file name.

Checking the Events module, I see that objEvents.GetEvents in GetCalendarEvents function already retrieves the correct file names, but my corresponding functions do not. What am I missing?

Could anyone give me a hint?

Thanks a lot in advance.

Kind regards from Barcelona.
 
New Post
3/13/2006 4:43 AM
 

oreidomar,

you need to do this in you sql:  here is some syntax which should help.

SELECT m.ModuleID,

'Src' = CASE WHEN srcf.FileName IS NULL THEN m.Src ELSE srcf.Folder + srcf.FileName END,

FROM {objectQualifier}MyModule AS m

LEFT OUTER JOIN {objectQualifier}Files AS srcf ON m.Src = 'fileid=' + CONVERT(VARCHAR, srcf.FileID)


Leigh Pointer
User Group Champion [World Wide]
» Evangelising DotNetNuke Everywhere «

Nederlandstalige DotNetNuke Gebruikersgroep Subzero Solutions ARC for DotNetNuke Design is the craft of visualising concrete solutions that serve human needs and goals within certain contraints. Visulising concrete solutions is the essence of design.
 
New Post
3/13/2006 5:46 AM
 
Perfect, that's what I was missing. It works now.

Thanks again.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsFrom "FileID=1" to "aspnet.gif": how?From "FileID=1" to "aspnet.gif": how?


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