Jump to content

Client-Area Dashboard: Quick Links For Widgets


serge

Recommended Posts

In the dashboard when you have a lot of invoices, services,etc, dashboard page can be LONG., and not all customers will scroll down so much.

 

Each widget can display each up to 20 lines by widget's pages., so if you have in this order

 

Widget 1: Invoices (20 lines)

Widget 2: Services (20 lines

Widget 3: Transactions (20 lines)

Widget 3: Supports (20 lines)

 

That do mean, "Transaction" is starting at +40 lines, and not all customers will presume it's bellow & will scroll down so much.

 

So that why I created quick links for widgets at top & at bottom of dashboard, see pictures.

 

Here the methods:

-----------------------

 

in     /app/views/client/YOUR-THEME/client_main.pdt

just after:

<div class="col-md-9 right_content">

Add:

              <a name="top"></a>
             
                |  <a href="<?php echo $this->Html->safe($this->client_uri . "#services");?>">Services</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#transactions");?>">Transactions</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#tickets");?>">Tickets</a> |  
    <br>
    <br>



At the end of file

just after:

?>


Add:

   <center>
               | <a href="<?php echo $this->Html->safe($this->client_uri . "#top");?>">Back to Top</a> |
               <a href="<?php echo $this->Html->safe($this->client_uri . "#invoices");?>">Invoices</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#services");?>">Services</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#transactions");?>">Transactions</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#tickets");?>">Tickets</a> |  
   </center>


-------------

in     /app/views/client/YOUR-THEME/client_invoices.pdt

At very beginning:

Before:

<?php


Add:


<a name="invoices"></a>

----------------

in     /app/views/client/YOUR-THEME/client_services.pdt

At very beginning

Before:

<?php


Add:

<a name="services"></a>

--------------------------

in     /app/views/client/YOUR-THEME/client_transactions.pdt

At very beginning

Before:

<?php


Add:

<a name="transactions"></a>



-------------------------

in          plugins/support_manager_addons/views/default/client_widget.pdt

At very beginning

Before:

<?php


Add:

<a name="tickets"></a>
 

post-10846-0-83899200-1423501049_thumb.p

post-10846-0-47270100-1423501060_thumb.p

Link to comment
Share on other sites

Or you can cut down the number of items per line which is easier: /config/blesta.php

////////////////////////////////////////////////////////////////////////////////
// Pagination
////////////////////////////////////////////////////////////////////////////////
// Number of results to display per page
Configure::set("Blesta.results_per_page", 20);
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

There are three (3) supplemental things to add to this "quick links" customization...
 

1) - If you use "Support Manger PRO"

You will need to go to ...

plugins/support_manager_pro/views/default/client_tickets_widget.pdt

At very beginning

Before:

<?php

Add:

<a name="tickets"></a>
 

================

2) - If you have added the "Quotes" widget to the Client Dashboard ...

Download link - https://www.blesta.com/forums/index.php?/topic/4799-plugin-quotesestimates-plugin/#comment-35750

Modification link - https://www.blesta.com/forums/index.php?/topic/8092-how-to-add-the-quotes-widget-to-the-client-dashboard/


You will need to go to ...

/plugins/quotes/views/default/client_main.pdt

At very beginning

Before:

<?php

Add:

<a name="quotes"></a>

 

=================

3) - Finally, you will add the URL links to the Client Dashboard

You will need to go to...    

/app/views/client/YOUR-THEME/client_main.pdt


Just after:

<div class="col-md-9 right_content">

Add:

<!--//Top Quick Link Hack BEGINS-->                    
 <a name="top"></a>
             
                |  <a href="<?php echo $this->Html->safe($this->client_uri . "#services");?>">Services</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#transactions");?>">Transactions</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#quotes");?>">Estimates</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#tickets");?>">Tickets</a> |  
    <br>
    <br>
<!--//Top Quick Link Hack ENDS-->    >



At the end of file

just after:


?>


Add:

<!--Bottom Quick Link Hack BEGINS-->
<center>
               | <a href="<?php echo $this->Html->safe($this->client_uri . "#top");?>">Back to Top</a> |
               <a href="<?php echo $this->Html->safe($this->client_uri . "#invoices");?>">Invoices</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#services");?>">Services</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#transactions");?>">Transactions</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#quotes");?>">Estimates</a> |
              <a href="<?php echo $this->Html->safe($this->client_uri . "#tickets");?>">Tickets</a> |  
   </center>
<!--Bottom Quick Link Hack ENDS-->

 

 

quick_links.jpg

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...