Results 1 to 4 of 4

Thread: Blank shortcuts after customization

  1. #1
    WEB11 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Washington, DC
    Posts
    30

    Question Blank shortcuts after customization

    Hello everyone,

    I am trying to customize my shortcuts doing the following:

    1- Edit the modules/<module name>/Menu.php file.
    2- Add the new LNK labels to the modules/<module name>/language/en_us.lang.php file
    3- Admin>Repair>Quick Repair & Rebuild.

    I know its not upgrade safe but it doesn't have to be as I don't plan to upgrade once I get this setup the way I want. The problem is that I get blank shortcuts, they actually work when I click them but no label shows up.

    I am attaching a screenshot of my home shortcuts where meetings, tasks and notescome up blank.

    Any ideas why?
    Attached Images Attached Images  
    Last edited by WEB11; 2009-03-27 at 02:24 AM.

  2. #2
    WEB11 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Washington, DC
    Posts
    30

    Default Re: Blank shortcuts after customization

    I just tried doing it using the upgrade safe instructions mentioned on on this thread but it results on the exact same problem.

  3. #3
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Blank shortcuts after customization

    Are you absolutely sure the LNK_ labels are exact,y the same in both the Menu and language files?
    Have you tried forcing a refresh in the browser (Ctl+R in FF, Ctl+F5 in IE)?

    Can you post the code of your Menu.php and lang file here for us to look at?

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  4. #4
    WEB11 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Washington, DC
    Posts
    30

    Default Re: Blank shortcuts after customization

    Mvngti thanks for the reply. I think I did it correctly but it seems that the Home Tab and a few other tabs are reading the labels from a different language file other than the one contained in modules/MODULE/language/.

    In any case here is the code:

    modules/home/Menu.php
    Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
    
    global $mod_strings;
    
    if(ACLController::checkAccess('Contacts', 'edit', true))$module_menu[] = Array("index.php?module=Contacts&action=EditView&return_module=Contacts&return_action=DetailView", $mod_strings['LNK_NEW_CONTACT'],"CreateContacts", 'Contacts');
    if(ACLController::checkAccess('Accounts', 'edit', true))$module_menu[] = Array("index.php?module=Accounts&action=EditView&return_module=Accounts&return_action=DetailView", $mod_strings['LNK_NEW_ACCOUNT'],"CreateAccounts", 'Accounts');
    if(ACLController::checkAccess('Meetings', 'edit', true))$module_menu[] = Array("index.php?module=Meetings&action=EditView&return_module=Meetings&return_action=DetailView", $mod_strings['LNK_NEW_MEETING'],"CreateMeetings", 'Meetings');
    if(ACLController::checkAccess('Tasks', 'edit', true))$module_menu[] = Array("index.php?module=Tasks&action=EditView&return_module=Tasks&return_action=DetailView", $mod_strings['LNK_NEW_TASK'],"CreateTasks", 'Tasks');
    if(ACLController::checkAccess('Emails', 'edit', true))$module_menu[] =Array("index.php?module=Emails&action=Compose", $mod_strings['LNK_COMPOSE_EMAIL'],"CreateEmails", 'Emails');
    if(ACLController::checkAccess('Notes', 'edit', true))$module_menu[]=Array("index.php?module=Notes&action=EditView&return_module=Notes&return_action=DetailView", $mod_strings['LNK_NEW_NOTE'],"CreateNotes");
    if(ACLController::checkAccess('Meetings', 'list', true))$module_menu[]=Array("index.php?module=Meetings&action=index&return_module=Meetings&return_action=DetailView", $mod_strings['LNK_MEETING_LIST'],"Meetings");
    if(ACLController::checkAccess('Tasks', 'list', true))$module_menu[]=Array("index.php?module=Tasks&action=index&return_module=Tasks&return_action=DetailView", $mod_strings['LNK_TASK_LIST'],"Tasks");
    if(ACLController::checkAccess('Notes', 'list', true))$module_menu[]=Array("index.php?module=Notes&action=index&return_module=Notes&return_action=DetailView", $mod_strings['LNK_NOTE_LIST'],"Notes");
    
    ?>

    modules/home/language/en_us.lang.php

    Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
    
    $mod_strings = array (
      'LBL_MODULE_NAME' => 'Home',
      'LBL_MODULES_TO_SEARCH' => 'Modules to Search',
      'LBL_NEW_FORM_TITLE' => 'New Contact',
      'LBL_FIRST_NAME' => 'First Name:',
      'LBL_LAST_NAME' => 'Last Name:',
      'LBL_LIST_LAST_NAME' => 'Last Name',
      'LBL_PHONE' => 'Phone:',
      'LBL_EMAIL_ADDRESS' => 'Email:',
      'LBL_MY_PIPELINE_FORM_TITLE' => 'My Pipeline',
      'LBL_PIPELINE_FORM_TITLE' => 'Pipeline By Sales Stage',
      'LBL_CAMPAIGN_ROI_FORM_TITLE' => 'Campaign ROI',
      'LBL_MY_CLOSED_OPPORTUNITIES_GAUGE' => 'My Closed Opportunities Gauge',
      'LNK_NEW_CONTACT' => 'Create Contact',
      'LNK_NEW_ACCOUNT' => 'Create Account',
      'LNK_NEW_OPPORTUNITY' => 'Create Opportunity',
    
    
      'LNK_NEW_LEAD' => 'Create Lead',
      'LNK_NEW_CASE' => 'Create Case',
      'LNK_NEW_NOTE' => 'Create Note',
      'LNK_NEW_CALL' => 'Schedule Call',
      'LNK_NEW_EMAIL' => 'Archive Email',
      'LNK_COMPOSE_EMAIL' => 'Compose Email',
      'LNK_NEW_MEETING' => 'Schedule Meeting',
      'LNK_NEW_TASK' => 'Create Task',
      'LNK_NEW_BUG' => 'Report Bug',
      
    /* NEW LABELS */
    
      'LNK_MEETING_LIST' => 'Meetings',
      'LNK_TASK_LIST' => 'Tasks',
      'LNK_NOTE_LIST' => 'Notes',
      'LNK_EMAIL_LIST' => 'Emails',
      
    etc...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 2009-04-06, 06:01 AM
  2. Relationship shortcuts
    By enicot in forum Developer Help
    Replies: 3
    Last Post: 2009-02-18, 02:46 PM
  3. Replies: 14
    Last Post: 2007-05-29, 11:09 PM
  4. Shortcuts Hanging
    By morebob in forum Developer Help
    Replies: 5
    Last Post: 2005-12-12, 06:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •