Jump to content
  • 0

How To Add Plugin's Widgets To Client Dashboard As Invoices And Services


ty0716

Question

As shown in figure:

 

this client dashboard Widgets orign is show Invoices , Services and transactions.  but now i need to change transactions to ticket. this ticket is support_mange plugin.

 

I don't know how to add to dashboard. Then i change app/client_controller.php protected function clientWidgets():

protected function clientWidgets() {
		$widgets = array();
		$widget_location = null;
		switch ($this->controller) {
			case "client_main":
				$widget_location = "widget_client_home";
				
				// Set the default widgets to appear
				$widgets = array(
					'client_invoices'=>array('uri'=>$this->base_uri . "invoices/?whole_widget=true"),
					'client_services'=>array('uri'=>$this->base_uri . "services/?whole_widget=true"),
					'client_tickets'=>array('uri'=>$this->base_uri . "plugin/support_manager/client_tickets/index/not_closed/"),
					/*'client_transactions'=>array('uri'=>$this->base_uri . "transactions/?whole_widget=true")*/
				);
				break;
		}

but this not display title ,then i change 

$this->WidgetClient->create($this->_("ClientTickets.index.boxtitle_tickets", true), array('id'=>"client_tickets"),null);

//or

$this->WidgetClient->create($this->_("ClientTickets.index.boxtitle_tickets", true), array('id'=>"client_tickets"),"full");

It can display title, but click Open or Closed will display 2 panel-title.

 

How should I solve this problem?

I see invoces and services ajax return "{"replacer":null,"content":"\n\t\t\t\n\t\t\t\t<div id=\"client_invoices\" class=\"panel panel-blesta content_section\"

 

 

but my ticket widgets ajax return "{"replacer":".panel_content","content":"\t\t\t<script type=\"text\/javascript\">\n$(document).blestaSetHeadTag(\"link\",";

20150814143249.png

 

 

 

20150814142548.jpg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...