Results 1 to 5 of 5

Thread: How to change the first page displayed for a module

  1. #1
    mrdon is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default How to change the first page displayed for a module

    Currently when "Campaigns" is clicked it displays the module Campaigns

    I would like it to display the page/module "Targets" which looks to be called module Prospects

    Any idea on how to do this? I don't want to use Campaigns but I do want to use Targets which seems to be a sub module of Campaigns.

    Thanks,
    Brandon

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to change the first page displayed for a module

    page/module "Targets" which looks to be called module Prospects
    Targets are in the module Target List.

    Target Lists may contain prospects.....but they are called Targets in SugarCRM

    If you are going to use Targets ... why aren't you going to use Campaigns?

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to change the first page displayed for a module

    Quote Originally Posted by mrdon View Post
    Currently when "Campaigns" is clicked it displays the module Campaigns

    I would like it to display the page/module "Targets" which looks to be called module Prospects

    Any idea on how to do this? I don't want to use Campaigns but I do want to use Targets which seems to be a sub module of Campaigns.

    Thanks,
    Brandon
    You need to copy the script modules/Campaigns/controller.php to custom/modules/Campaigns/controller.php and implement the method action_listview.
    The function should looks like that:

    PHP Code:
        function action_listview() {
            
    $this->view 'list';
            
    $_REQUEST['module'] = 'Prospects';
            
    $_REQUEST['action'] = 'index';
        } 

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    mrdon is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: How to change the first page displayed for a module

    Thank you both for your help.

    I don't want to use campaigns because, from what I can tell, campaigns look like they are for tracking things like mailers & email blasts, etc., the costs and so on. I don't need the functionality, I only need the ability to input individual targets. Hopefully I am heading the right direction.

  5. #5
    mrdon is offline Member
    Join Date
    Sep 2009
    Posts
    9

    Default Re: How to change the first page displayed for a module

    Hi Andre,

    I followed your instructions and it didn't seem to affect anything. When I click on click on the campaigns tab i am still seeing the main Campaigns page (http://mysite.com/index.php?module=C...s&action=index)

    My controller file in /www/sugarcrm/custom/modules/Campaigns looks like this now:

    Code:
    <?php
    require_once('include/MVC/Controller/SugarController.php');
    class CampaignsController extends SugarController{
    
        function action_listview() {
            $this->view = 'list';
            $_REQUEST['module'] = 'Prospects';
            $_REQUEST['action'] = 'index';
        }
    }
    ?>
    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Page could not be displayed
    By sugarcare in forum Help
    Replies: 4
    Last Post: 2006-08-28, 04:57 PM
  2. Replies: 1
    Last Post: 2006-08-03, 06:36 AM
  3. Page cannot be displayed
    By paviles in forum General Discussion
    Replies: 2
    Last Post: 2006-03-22, 04:48 AM
  4. Page cannot be displayed.
    By siliconfiber in forum Help
    Replies: 1
    Last Post: 2005-12-28, 04:31 PM
  5. Page Cannot Be Displayed
    By vidtechsteve in forum Help
    Replies: 0
    Last Post: 2005-10-07, 05:09 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
  •