View Single Post
  #4  
Old 05-10-2015, 11:20 PM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default Re: Duplicating File Attachments module

Some more information that might help...

In the module (File Attachments) that I'm attempting to duplicate there's this code to upload a file...

Code:
<div class="add-file"> <widget class="XLite\View\Button\FileSelector" label="Add file" object="product" objectId="{product.getProductId()}" fileObject="attachments" /> </div>

one of the changes in the module code I've made is to change the fileObject...

Code:
<div class="add-file"> <widget class="XLite\View\Button\FileSelector" label="Add file" object="product" objectId="{product.getProductId()}" fileObject="casestudies" /> </div>

Can you explain what this fileObject is a little and what the process is that uploading a file starts. I want to make sure I'm dealing with this correctly in my module.
__________________
Core version: 5.5.xx
Reply With Quote