dashboard This module used to build a iGoole like dashboard page which let user drag/drop/add/remove portlets in.

  1. Requirements
  2. Usage

...overview of the extension...

Requirements

Yii 1.1.5 or above.

Usage

  1. Add in config/main.php:
'modules'=>array(
    'dashboard' => array(
      'debug' => true,
      'portlets' => array(
        'News' => array('class' => 'News', 'visible' => true, 'weight' => 0), 
        'Forums' => array('class' => 'Forums', 'visible' => true, 'weight' => 1), 
        'Videos' => array('class' => 'Videos', 'visible' => true, 'weight' => 2), 
        'Blogs' => array('class' => 'Blogs', 'visible' => true, 'weight' => 3), 
        'Friends' => array('class' => 'Friends', 'visible' => true, 'weight' => 4),
      ),
    ),
),
  1. Access the dashboard page by index.php/dashboard

  2. User can create own portlet.

a:

class Blogs extends DPortlet
{

  protected function renderContent()
  {
    echo 'Blogs Content';
  }
  
  protected function getTitle()
  {
    return 'Blogs';
  }
  
  protected function getClassName()
  {
    return __CLASS__;
  }
}

b: Put this portlet file into /modules/dashboard/portlets directory.

c: Add this portlet into dashboard configuration like step 1.

12 0
31 followers
1 825 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: Vincent Dong
Created on: Feb 21, 2011
Last updated: 13 years ago

Downloads

show all