Results 1 to 1 of 1

Thread: Default dashlets with options.

  1. #1
    wdroush is offline Senior Member
    Join Date
    Oct 2009
    Posts
    159

    Default Default dashlets with options.

    So I've had to re-write part of the dashlets.php to do some checking and loading of dashlets that are upgrade safe and allow for options.

    However, I have an issue viewing the options of already added dashlets.

    I add a dashlet
    Before I load them I do a var_export on $dashlets in dashlets.php
    This is the var dump:

    Code:
    array (
    '421003e1-7dc4-dcfd-ed7a-4adf6ba02e97' =>
    array (
    'className' => 'Leads',
    'module' => 'MyLeadsDashlet',
    'fileLocation' => NULL,
    'options' =>
    array (
    'title' => 'My Leads',
    ),
    ),
    '4263035f-0384-38b6-9d84-4adf6be0a4eb' =>
    array (
    'className' => 'iFrameDashlet',
    'module' => 'iFrames',
    'fileLocation' => 'modules/iFrames/Dashlets/iFrameDashlet/iFrameDashlet.php',
    'options' =>
    array (
    'title' => 'Reference Code',
    'url' => 'http://172.16.100.20/iframes/refcode.php',
    'height' => 50,
    ),
    ),
    '4f610448-9fa7-360a-097c-4adf6b271216' =>
    array (
    'className' => 'MyLeadsDashlet',
    'module' => 'Leads',
    'fileLocation' => 'modules/Leads/Dashlets/MyLeadsDashlet/MyLeadsDashlet.php',
    'options' =>
    array (
    'filters' =>
    array (
    'date_entered' =>
    array (
    ),
    'status' =>
    array (
    0 => 'New',
    1 => 'Contacted',
    2 => 'Notary Scheduled',
    ),
    ),
    'title' => 'My Leads',
    'myItemsOnly' => 'true',
    'displayRows' => '5',
    'displayColumns' =>
    array (
    0 => 'name',
    1 => 'phone_home',
    2 => 'phone_mobile',
    3 => 'date_entered',
    ),
    ),
    ),
    '54eb09b5-1409-0ac4-58a7-4adf6b4af06f' =>
    array (
    'className' => 'MyCallsDashlet',
    'module' => 'Calls',
    'fileLocation' => 'modules/Calls/Dashlets/MyCallsDashlet/MyCallsDashlet.php',
    'options' =>
    array (
    ),
    ),
    '59ea05f9-ea92-88e8-da20-4adf6bc581f0' =>
    array (
    'className' => 'MyMeetingsDashlet',
    'module' => 'Meetings',
    'fileLocation' => 'modules/Meetings/Dashlets/MyMeetingsDashlet/MyMeetingsDashlet.php',
    'options' =>
    array (
    ),
    ),
    )
    Well that is not right, My Leads (first dashlet) had two columns added and properties changed... where can I print out the options so that I can add them into my default dashlet loader?


    Edit:
    Gah silly me, it's in there, the 2nd leads Dashlet, for some reason it made a new one instead of reconfiguring. Works great.

    Though I wish there was a more native way to create a default dashlet set, or at least not so messy.
    Last edited by wdroush; 2009-10-21 at 09:05 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change default dashlets
    By andydeans in forum Developer Help
    Replies: 5
    Last Post: 2010-12-21, 04:41 PM
  2. edit default dashlets displayed
    By Rudi Mentär in forum Developer Help
    Replies: 1
    Last Post: 2009-02-04, 06:02 PM
  3. Replies: 3
    Last Post: 2008-09-10, 05:58 AM
  4. Default Tab Layout Options
    By cdembek in forum Help
    Replies: 0
    Last Post: 2007-08-30, 01:34 AM
  5. Default Dashlets
    By Nextevolution in forum Developer Help
    Replies: 3
    Last Post: 2007-06-14, 01:35 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
  •