Jump to content
  • 0

How To Rearrange The Widgets On The Client Dashboard.


Question

Posted

Hello!

I was wondering if anyone could assist me on where to look in order to change the order of the widgets on the client dashboard? (Invoices, services, transactions).

Cheers,

Andrew

12 answers to this question

Recommended Posts

  • 0
Posted

Just drag and drop mate.

That method doesnt seem to work on the client page but even if it did it still doesnt really solve the fact that I would like the widgets to load in a specific order for everyone.

 

Any other ideas?

 

Thanks again!

  • 0
Posted

That method doesnt seem to work on the client page but even if it did it still doesnt really solve the fact that I would like the widgets to load in a specific order for everyone.

 

Any other ideas?

 

Thanks again!

 

Oh do you mean as a client? You can't only admins.

  • 0
Posted

not possible ...

in my plugin "announcement" i have a jquery code to make the widget in the first view of all .

you can inspire from it

 

Why is it impossible? It seems out of all the things that would not be possible would be this as the majority of the code is available to you.

  • 0
Posted

Why is it impossible? It seems out of all the things that would not be possible would be this as the majority of the code is avaialble to you.

 

It's not impossible but you would need to change a lot of the code to make it like the admin area where you can drag and drop, save the locations for each customer.

  • 0
Posted

It's not impossible but you would need to change a lot of the code to make it like the admin area where you can drag and drop, save the locations for each customer.

 

Except I'm not looking to giving the people the ability to customize the layout through drag and drop.. I just want to hard code it so that services always show first :P

  • 0
Posted

I think what they mean by 'not possible' is that it is currently not an available behavior in Blesta. And the code that handles this happens to be in an encoded file. But if you're familiar with jquery, you can take a look at /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js, and update blestaLoadWidgets to update the interface to display the widgets in your custom order.

  • 0
Posted

I think what they mean by 'not possible' is that it is currently not an available behavior in Blesta. And the code that handles this happens to be in an encoded file. But if you're familiar with jquery, you can take a look at /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js, and update blestaLoadWidgets to update the interface to display the widgets in your custom order.

 

I have done exactly that.

 

Thank you!

  • 0
Posted

If you can share the custom change withe the community , so others can see the response to your request .

 

This is hardly the best way of doing it but it works. (Don't judge me :P)

 

In /app/views/client/bootstrap/javascript/jquery-client-3.2.0.js method blestaLoadWidget find:

var temp = $(data.content);

after it put the following:

// Append the widget to the page
if (data.content.indexOf("services") >= 0)
    $(container).prepend(temp);
else
    $(container).append(temp);

That's it!

 

edit: forgot to mention which method to change lol

  • 0
Posted

Thank You! It's work fine.

 

Only things is : priority message, like "Your account has an outstanding balance of xxxxxxx. Please make a payment at your earliest convenience."

 

Are no more displayed at top.

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