[Vtigercrm-developers] vTiger 6 New UIType

Stefan Warnat ich at stefanwarnat.de
Fri Jan 25 09:04:11 PST 2013


Hy,

I will break in your discussion and would say, that this will be a great 
enhancement, how to handle uitypes!

If you move the data from function getFieldDataType() into database, 
this will open lots of possibilities. This shouldn't generate too much work.
But you will have your reason, if you don't do this.

Stefan

Freelancer at Webdevelopment

*Web*: http://www.stefanwarnat.de
*Xing*: https://www.xing.com/profile/Stefan_Warnat2
*eMail*: ich at stefanwarnat.de <mailto:ich at stefanwarnat.de>
*
Telefon*: 0162 / 2548568
(Werktags 12 - 18 Uhr)

Am 25.01.2013 15:53, schrieb praneeth K:
> Hi Salim ,
>
>        As alan said we will not be using EditViewUtils.php . To add 
> new uitype please follow below procedure
>
>        Lets Suppose we need to add new uitype for "link"
>
>        1.  Using vtlib we will create field with uitype (say 200)
>        2.  Now we need to map the uitype with the field type . This we 
> can do in Field.php(vtiger6/modules/models/Field.php)
>        3.   Searh for the function getFieldDataType(). In here you can 
> map the uitype to field type
>
>                   if($this->get('uitype') == "200') {
>                          return 'link';
>                   }
>
>        4. This will define the specific field type for the uitype . 
> Using this fieldtype we can design our element in the way we need.
>
>        5.  Add a new file called Link.php under 
> vtiger6/modules/Vtiger/uitypes and it should have class like 
> /Vtiger_Link_UIType /and it should extend Vtiger_Base_UIType
>
>        6. Overwrite the function getTemplateName and give value as 
> uitypes/Link.tpl. The same file should exist in path 
> vtiger6/layouts/vlayout/modules/Vtiger/uitypes.
>
>        7. In this file you can design your element . This will effect 
> in views Edit.QuickCreate and MassEdit
>
> Hope this helps you
>
> On Fri, Jan 25, 2013 at 4:02 PM, salim <salim at posibolt.com 
> <mailto:salim at posibolt.com>> wrote:
>
>     Thanks for you reply Al,
>     Started to grep  :P
>
>
>     On 25 January 2013 14:20, Alan Lord <alanslists at gmail.com
>     <mailto:alanslists at gmail.com>> wrote:
>
>         On 25/01/13 04:55, salim wrote:
>         > Hi
>         >
>         > Anyone tried to create a new UI type in Vtiger 6, I have
>         tried to edit
>         > "EditViewUtils.php" but no effect, It seems no call at all
>         to this file.
>
>         I don't think vtiger 6 uses that system at all.
>
>         Look in the vtiger6 directory and you will see a completely new
>         structure (MVC).
>
>         I've not examined it in any detail but it is *very* different
>         from the
>         current version of vtiger.
>
>         'grep' is probably going to be your best friend on your journey.
>
>         HTH
>
>         Al
>
>
>
>         _______________________________________________
>         http://www.vtiger.com/
>
>
>
>     _______________________________________________
>     http://www.vtiger.com/
>
>
>
>
> -- 
>
> Best Regards,
> K Praneeth,
> vtiger Team.
>
> *Connect with us on: *Twitter <http://twitter.com/vtigercrm>*I* 
> Facebook 
> <http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* 
> Blog <http://blog.vtiger.com/>* I* Wiki 
> <http://wiki.vtiger.com/index.php/Main_Page> *I *Forums 
> <http://forums.vtiger.com/>*I* Website <http://vtiger.com/>
>
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130125/d5e15bdf/attachment-0001.html 


More information about the vtigercrm-developers mailing list