uitype 69 : file upload field - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: uitype 69 : file upload field (/showthread.php?tid=163) Pages:
1
2
|
uitype 69 : file upload field - saidmsl - 06-28-2015 Hi, continuing the thread from vtiger forum : Joe Bordes : " Hi, As I stated in my previous response: We haven't added it to the layout editor but that should be easy to do now that the hard part is working. Adding fields is done using vtlib, have a read at the module construction manual and wiki. " where is reference to the manual and wiki? Here is the cbupdate file as a sample then add this to cbupdares.xml (or create a new xml file under cbupdater folder) <changeSet> <author>mslokhat</author> <description>Add field File to Contact</description> <filename>build/changeSets/addFileToContacts.php</filename> <classname>addFileToContacts</classname> <systemupdate>true</systemupdate> </changeSet> RE: uitype 69 : file upload field - joebordes - 06-28-2015 Thank you :-) RE: uitype 69 : file upload field - jossey - 06-29-2015 @saidmsl thank you for the guide above. I have added the xml to modules/cbupdater/cbupdater.xml and addFileToContacts.php to build/changeSets/ but when I go to contacts it is not showing. Is there something else that needs to be done? Thanks in advance. RE: uitype 69 : file upload field - joebordes - 06-29-2015 You should not modify cbupdater.xml, that is the system file. You have to create your own .xml file and put it in the cbupdates directory. Once you have done that you have to go to coreBOS Updater, load the changes, select the changes you want to apply and apply them RE: uitype 69 : file upload field - jossey - 06-29-2015 @joebordes, looks like my coreBOS had not installed correctly. I have reinstalled and I'm now able to see the coreBOS updater. I've run the changes and all seems well only that while I'm in the contacts module manager, I can't see an option to create a file field. @saidmsl, what could I be missing? Thanks all. RE: uitype 69 : file upload field - saidmsl - 06-29-2015 this cbupdater already create the field for file upload the field created will be "fileid" once you have load changes and apply this cbupdater , just go to any contact , there is a field "File" , on Edit view, you can upload a file Rgds RE: uitype 69 : file upload field - jossey - 06-29-2015 Great! Now working as expected. Thank you all for your assistance. RE: uitype 69 : file upload field - anilp78 - 08-01-2020 Hi, I was able to update contacts with the xml and php file provided. Can I modify the addFileToContacts.php and add the field to Leads module also? thanks, Anil RE: uitype 69 : file upload field - joebordes - 08-01-2020 Hi Anilp78 This is not required anymore. You can add image fields directly in the layout editor to any module you want. Also you can now create manual changesets directly in the coreBOS udpater module with no need to change any code. That said, the solution given in this thread still works as expected and you should be able to add an image field to Leads with no issue at all, just change the module name to Leads and change the block name accordingly RE: uitype 69 : file upload field - anilp78 - 08-01-2020 Thanks Joe, I am using an older version of corebos, would love to update it to the latest, is it possible to seamlessly update the entire system without losing data and settings? I was able to add the field to Leads and it worked well with webforms also, however, here is the silly question, i cannot see the uploaded file content (its an image), how do i see it now in corebos? I only see filename in the field against the record. thanks, Anil |