Syleron Posted October 21, 2014 Report Posted October 21, 2014 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 Quote
0 Syleron Posted October 29, 2014 Author Report Posted October 29, 2014 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 ) 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 Blesta Addons, serge and Michael 3 Quote
0 Syleron Posted October 21, 2014 Author Report Posted October 21, 2014 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! Quote
0 Michael Posted October 21, 2014 Report Posted October 21, 2014 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. Quote
0 Blesta Addons Posted October 21, 2014 Report Posted October 21, 2014 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 Quote
0 Syleron Posted October 22, 2014 Author Report Posted October 22, 2014 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. Quote
0 Michael Posted October 22, 2014 Report Posted October 22, 2014 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. Quote
0 Syleron Posted October 22, 2014 Author Report Posted October 22, 2014 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 Quote
0 Tyson Posted October 23, 2014 Report Posted October 23, 2014 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. Michael 1 Quote
0 Syleron Posted October 24, 2014 Author Report Posted October 24, 2014 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! Quote
0 Blesta Addons Posted October 27, 2014 Report Posted October 27, 2014 If you can share the custom change withe the community , so others can see the response to your request . Quote
0 serge Posted February 9, 2015 Report Posted February 9, 2015 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. Quote
Question
Syleron
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.