<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hy,<br>
<br>
I will break in your discussion and would say, that this will be a
great enhancement, how to handle uitypes!<br>
<br>
If you move the data from function getFieldDataType() into database,
this will open lots of possibilities. This shouldn't generate too
much work.<br>
But you will have your reason, if you don't do this.<br>
<br>
Stefan<br>
<br>
<div class="moz-signature"><small><small>Freelancer@Webdevelopment</small></small><br>
<br>
<small><small><b>Web</b>: <a href="http://www.stefanwarnat.de">http://www.stefanwarnat.de</a></small></small><br>
<small><small><b>Xing</b>: <a
href="https://www.xing.com/profile/Stefan_Warnat2">https://www.xing.com/profile/Stefan_Warnat2</a></small></small><br>
<small><small><b>eMail</b>: <a href="mailto:ich@stefanwarnat.de">ich@stefanwarnat.de</a></small></small><br>
<small><small><b><br>
Telefon</b>: 0162 / 2548568 </small></small><br>
<small><small>(Werktags 12 - 18 Uhr)</small></small><br>
</div>
<br>
Am 25.01.2013 15:53, schrieb praneeth K:
<blockquote
cite="mid:CALiFfbMFGJpGD+E8DvW0eGF=Ja2W_=n0j8WKBq0xBmRSuf21Yg@mail.gmail.com"
type="cite">Hi Salim , <br>
<br>
As alan said we will not be using EditViewUtils.php . To
add new uitype please follow below procedure <br>
<br>
Lets Suppose we need to add new uitype for "link"<br>
<br>
1. Using vtlib we will create field with uitype (say 200)<br>
2. Now we need to map the uitype with the field type .
This we can do in Field.php(vtiger6/modules/models/Field.php)<br>
3. Searh for the function getFieldDataType(). In here you
can map the uitype to field type <br>
<br>
if($this->get('uitype') == "200') {<br>
return 'link';<br>
}<br>
<br>
4. This will define the specific field type for the uitype
. Using this fieldtype we can design our element in the way we
need.<br>
<br>
5. Add a new file called Link.php under
vtiger6/modules/Vtiger/uitypes and it should have class like <i>Vtiger_Link_UIType
</i>and it should extend Vtiger_Base_UIType<br>
<br>
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.<br>
<br>
7. In this file you can design your element . This will
effect in views Edit.QuickCreate and MassEdit <br>
<br>
Hope this helps you <br>
<br>
<div class="gmail_quote">On Fri, Jan 25, 2013 at 4:02 PM, salim <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:salim@posibolt.com" target="_blank">salim@posibolt.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Thanks for you reply Al,<br>
</div>
<div>Started to grep :P<br>
</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 25 January 2013 14:20, Alan
Lord <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 25/01/13 04:55, salim wrote:<br>
> Hi<br>
><br>
> Anyone tried to create a new UI type in
Vtiger 6, I have tried to edit<br>
> "EditViewUtils.php" but no effect, It seems
no call at all to this file.<br>
<br>
</div>
I don't think vtiger 6 uses that system at all.<br>
<br>
Look in the vtiger6 directory and you will see a
completely new<br>
structure (MVC).<br>
<br>
I've not examined it in any detail but it is *very*
different from the<br>
current version of vtiger.<br>
<br>
'grep' is probably going to be your best friend on
your journey.<br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
<br>
_______________________________________________<br>
<a moz-do-not-send="true"
href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
<a moz-do-not-send="true" href="http://www.vtiger.com/"
target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<br>
<div>Best Regards,</div>
<div>K Praneeth,</div>
<div>vtiger Team.</div>
<div><br>
</div>
<div>
<span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b>Connect
with us on: </b><a moz-do-not-send="true"
href="http://twitter.com/vtigercrm" target="_blank"><font
color="#0000cc">Twitter</font> </a><b>I</b> <a
moz-do-not-send="true"
href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall"
style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a
moz-do-not-send="true" href="http://blog.vtiger.com/"
style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a
moz-do-not-send="true"
href="http://wiki.vtiger.com/index.php/Main_Page"
style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a
moz-do-not-send="true" href="http://forums.vtiger.com/"
style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a
moz-do-not-send="true" href="http://vtiger.com/"
style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
</body>
</html>