Adding extra info upload fields - is this the right way?

5 posts by 2 authors in: Forums > CMS Builder
Last Post: July 14, 2017   (RSS)

By JeffC - July 5, 2017

Hi

I would like to add two extra info upload fields. Can I do this simply by creating the extra fields here:

admin.php?menu=database&action=editTable&tableName=uploads

I am guessing that any changes to this file will be overwritten when I upgrade?

Would any information that I have added to these fields also be overwritten with an upgrade, or would the database info stay intact and just cause an error until I recreate the fields?

Is there a better way of doing this?

Thanks
Jeff

Jeff

By Dave - July 5, 2017

Hi Jeff, 

The 5 upload info fields are hardcoded in a number of places through the code so there is no easy way to add to them.  

What you might try as an alternative is to create a section for uploads with one upload field (with no info fields) and then add extra fields to that section.  So you'd have an upload field and whatever other text, textbox, etc other fields you wanted.

Then you could associate those uploads with another section using a related records field.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By Dave - July 6, 2017

Hmm, I haven't used that plugin in a long time so I'm not sure.  

One thing you can try is using showme() to see the contents of that variable <?php echo showme($rangesRecord); ?>

Perhaps it's added some fields that you can now output on the page? 

Dave Edis - Senior Developer
interactivetools.com

By JeffC - July 14, 2017

Hi Dave

I'm still struggling with this. I have submitted a custom consulting request via the website. 

Cheers

Jeff