[Vtigercrm-developers] This shouldn't be so hard!

Prasad prasad at vtiger.com
Wed Jun 13 06:29:19 PDT 2012


Alan,

As a workaround, you can handle adding this attribute to form through
Javascript.

Regards,
Prasad

On Wed, Jun 13, 2012 at 6:31 PM, Alan Lord <alanslists at gmail.com> wrote:

> On 11/06/12 22:43, Joe Bordes wrote:
> > If your problem is with $_FILE comming in empty it is because your form
> > must have the multi part directive:
> >
> >    ENCTYPE="multipart/form-data"
> >
> > look at Smary/templates/EditViewHidden.tpl
>
> Thanks very much Joe,
>
> That helped a lot. I now have a working UI type 69 field in a custom
> module which also renders the image in Detail View like in the Contacts
> module :-)
>
> I have had to add some code to the DetailView.php of my module to
> intercept the $smarty->assign getBlocks() call as UI type 69 is not
> supported outside of Products or Contacts in the
> /include/utils/DetailViewUtils.php file...
>
> But at least I have done this without having to modify core vtiger code.
>
> Does anyone know if I can override the
> Smarty/templates/EditViewHidden.tpl file in a vtlib module too? It's
> only a minor change to line 84 to add the ENCTYPE... but it is a
> modification to core once again, which I would like to avoid if at all
> possible...
>
> Cheers
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120613/e68b9a2f/attachment.html 


More information about the vtigercrm-developers mailing list