Jump to content
  • 0

How To Rearrange The Widgets On The Client Dashboard.


Syleron

Question

12 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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!

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