Login Register
Sunday, February 05, 2012
You are here : Forum
 
Forums Minimize
 
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...Adding & displaying attachmentsAdding & displaying attachments
Previous Previous
 
Next Next
New Post
 8/16/2010 1:18 PM
 

Hi,

Can someone provide an example on how to add attachments to a line. fe word, excel, pdf's and how to display these?

Must be simular as adding pictures ....

Thanks

New Post
 8/20/2010 5:34 PM
 

it is pretty much the same things as picture. The manual goes through that. Is there something specific you have a question on? When you use the binary file wizard it let's you select files, images or both. I don't think it is much different.

New Post
 8/20/2010 6:41 PM
 

Hi Cutts,

I guess my data is into the database correctly but when I'm Gridview I would like to click and open the concerned document. I can't find back something simular in the manual.

The following is given as example for pictures in the manual and works fine for images.

<center> <div><img alt="" onerror="this.width='1px';this.height='1px'" style="position: absolute; visibility: hidden" src="[indoogrid:moduleFolder]images/preload.gif" /><img alt="" onclick="this.style.display ='none'" onmouseout="this.style.display ='none'" onload="this.style.marginLeft=-((this.width/2)-(this.nextSibling.width/2));this.style.marginTop=-((this.height/2)-(this.nextSibling.height/2));this.style.visibility='visible';this.previousSibling.style.display='none'" style="position: absolute; display: none; visibility: hidden" /><img alt="" onmouseover="img2=this.previousSibling;if (img2.src==''){img2.src='[indooGrid:binaryLink]'};img2.style.display='block'; this.previousSibling.previousSibling.style.visibility='visible'" src="[indooGrid:binaryLinkThumbnail]" /></div> </center>

But as newbee (I'm more of a copycat) this doesn't help my out with for example .doc added files

Thanks already for trying to help me out.

Regards

New Post
 8/20/2010 8:14 PM
 

Assuming your grid is using that table with the binary then you just need to add that to your gridView.

  1. If you used their standard name it would be the file1_content.
  2. when you edit that field in the 'Show binary as..." select Link
  3. "File name source" will depend on how you set it up. I usually use 'File name is taken from another column'
  4. "Mime type source" I usually ignore because I choose to store to the file system not the database
  5. The next page of the wizard I choose the "filename source column" - file1_name
  6. I can then choose the text/field that will diplay under "Text/Link Settings", for example choose file1_title

That's it. I don't actually have to write any specific html... the wizard takes care of all of it.

Hope that helps

New Post
 8/21/2010 3:47 PM
 

Thanks,

Why do I always try to make it difficult.

As an expert, could you look at my other open question on this forum?

This time it's about displaying Images, this works fine untill I integrate restriction in the WHERE-clausule with parameter info coming from my URL. All data is shown except the Images.

Thanks already for helping me out with the current issue.

Regards

Belgium

Previous Previous
 
Next Next
ForumForumForumForumIndoo Grid DNN ...Indoo Grid DNN ...Adding & displaying attachmentsAdding & displaying attachments

  
Buy it Minimize

 

 

  
Home | Demo | Custom Solutions | Downloads | Forum | Company
 
Privacy Statement | Terms Of Use
 
Copyright 2008-2009 IndooLab d.o.o.