Results 1 to 4 of 4

Thread: Campaign Module in SugarCRM

  1. #1
    PrimaryHan is offline Member
    Join Date
    Mar 2009
    Location
    Cape Town South Africa
    Posts
    8

    Unhappy Campaign Module in SugarCRM

    Hi,

    I have been manipulating SugarCRM for about two months now and seem to understand how it flows, well i thought i did until i ran into this problem.

    When you choose campaigns, and then search for a campaign and then once you have selected the campaign from the list of campaigns it takes you to the DetailView, that then shows me the campaign name, date sent etc. Under that is the targetlist division, trackerurl division and then email template division.

    I would like to know where i can find the php/html page that displays those divisions under the campaign information at the top of the DetailView.

    Normally the first thing to do would be to check the action and module variables in the url. These point to Campaign module and then DetailView... However there isnt a DetailView/EditView in the Campaigns module in sugar.

    You see i would like to make the campaign to give the user the option to choose an email template if the campaign is of type EMAIL and FAX and not just EMAIL.

    Please can someone help with this.

    regards.

  2. #2
    PrimaryHan is offline Member
    Join Date
    Mar 2009
    Location
    Cape Town South Africa
    Posts
    8

    Default Re: Campaign Module in SugarCRM

    I take it no1 here knows how to manipulate the sugar Email Campaign Module, and turn it into a Fax Campaign System?

    I have been doing some investigating, and i have managed to make it that i can create a campaign of type Fax, Email and SMS, the sms and email systems work well.

    The fax system needs to be a duplicate of the email campaign but with "Fax" instead of Email.

    - i noticed that in the "./sugar/modules/Campaigns/metadata/subpaneldefs.php" i simply copied the entry of the emailmarketing and changed the info to fax details ie:

    ),
    'emailmarketing' => array(
    'order' => 20,
    'sort_order' => 'desc',
    'sort_by' => 'date_start',
    'module' => 'EmailMarketing',
    'get_subpanel_data'=>'emailmarketing',
    'subpanel_name' => 'default',
    'title_key' => 'LBL_EMAIL_MARKETING_SUBPANEL_TITLE',
    ),
    'faxmarketing' => array(
    'order' => 25,
    'sort_order' => 'desc',
    'sort_by' => 'date_start',
    'module' => 'FaxMarketing',
    'get_subpanel_data'=>'faxmarketing',
    'subpanel_name' => 'default',
    'title_key' => 'LBL_FAX_MARKETING_SUBPANEL_TITLE',
    ),

    -LBL_FAX_MARKETING_SUBPANEL_TITLE appears in the studio under Campaigns->Labels so that should be working and linked correctly.

    - I duplicated the table in the database called email_marketing and named the duplicate to fax_marketing.

    - File: ./sugar/modules/Campaigns/views/view.detail.php basically decides what subpanels to add that is if the campaign is of type Email then it adds the emailmarketing, tracker and targetlist subpanels and excludes the rest of the subpanels.

    - I mailed the list of subpanels that " view.detail.php " has to choose from and the faxmarketing isnt in the list even after i added it in the subpaneldef.php array called " $layout_defs['Campaigns'] ".

    " require_once('include/SubPanel/SubPanelTiles.php');
    $subpanel = new SubPanelTiles($this->bean, $this->module);
    //get available list of subpanels
    $alltabs=$subpanel->subpanel_definitions->get_available_tabs(); "


    - $alltabs=$subpanel->subpanel_definitions->get_available_tabs(); " gets the list of subpanels that can be shown.

    -I cant say that i want to keep Fax Marketing cause faxmarketing isnt in the list so ive been trying to find out how it builds this list of subpanels, or from which table in the db does it get this information.

    Please if any1 knows, please say something!!!!

    regards


  3. #3
    PrimaryHan is offline Member
    Join Date
    Mar 2009
    Location
    Cape Town South Africa
    Posts
    8

    Default Re: Campaign Module in SugarCRM

    Once again thanks for the great support

    LEGANDS!!!!!!!!!!!!!!

    yes that is sarcasm...!

  4. #4
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Campaign Module in SugarCRM

    have a look at modules/campaign/view/view.detail.php The display() function of the regular view is overwritten and there is the selection of Subpanels that are to be displayed. if you want to change that you need to add the Subpanels from your definition to the subpanelviedefs and then limit the display there.

    if you want to have diffrent lists follow the example that is there. You will see that there is another view file called view.newsletterlist.php. That displays other Siubpanels and also other information.

    Which one is chosen is overwritten in the Controller of the Module modules/campaigns/controller.php. There you see the action newsletterloist pointing to another view.

    So if you folow the concept -> copy the view.detail.php to view.faxcampaign.php and do your ting there. Add in the controller.php the linkage of your new view "faxcampaign" to your action.

    hope this helps - and my sincere apologies for not responding earlier ... ;-) ... long live the community ... hope you can give this back sometmes.

    christian.

    Interested in an enahced Outlook Plugin -> http://www.sugarcrm.com/forums/showthread.php?t=47670





    Quote Originally Posted by PrimaryHan View Post
    Once again thanks for the great support

    LEGANDS!!!!!!!!!!!!!!

    yes that is sarcasm...!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM sending FAX , for campaign
    By bisana in forum General Discussion
    Replies: 5
    Last Post: 2008-10-08, 01:25 PM
  2. missing campaign module 4.5.1h
    By krollwind in forum Help
    Replies: 2
    Last Post: 2008-04-09, 12:49 PM
  3. Problem with campaign module
    By stasila in forum Help
    Replies: 3
    Last Post: 2008-03-12, 03:53 PM
  4. Errors in Campaign Module
    By emanresu in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-03-09, 02:57 PM
  5. My campaign module is broken!!!
    By holsum in forum Help
    Replies: 2
    Last Post: 2007-04-24, 04:32 AM

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
  •