Jump to content


Photo

Creating a new View in HomeDashboardView.

Dashboard View HTML Tables Customize Home

  • Please log in to reply
1 reply to this topic

#1 qwr

qwr

    Member

  • Members
  • PipPip
  • 10 posts

Posted 06 June 2014 - 06:15 AM

I'm new to Zurmo and coding, I have tried to search for similar queries about this topic but was not able to conclude on what to do.
 

The code below contains the edited HomeAndDashboardView.php

$prependContent = '<table class="items">
<tbody>
<tr><td>Test</td></tr>
<tr><td>test data</td></tr>
</tbody>
</table><br />';
            $this->setView(new TitleBarView(strval($model), null, 1,
                $prependContent), 0, 0);

TitleBarView.php for reference.

public function __construct($title, $description = null, $styleSize = 1, $prependContent = null)
        {
            $this->title          = $title;
            $this->description    = $description;
            $this->styleSize      = $styleSize;
            $this->prependContent = $prependContent;
        }

This is the result...
Screenshot from 2014-06-06 14:13:27.png

 

What are the alternatives to doing this? Thanks in advance!



#2 qwr

qwr

    Member

  • Members
  • PipPip
  • 10 posts

Posted 06 June 2014 - 06:33 AM

Is it possible to do this? What the are other files that I have to edit/create?
 

public function __construct($controllerId, $moduleId, $uniqueLayoutId, $model, $params)
        {
            parent::__construct(3, 1);
            $this->setView(new ???) // I have no idea what to put here...
            $this->setView(new TitleBarView (strval($model)), 0, 0);
...







Also tagged with one or more of these keywords: Dashboard, View, HTML Tables, Customize, Home

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users