Andy Garsia Posted March 19, 2014 Share Posted March 19, 2014 Hi everyone! Recenty I've added a new column 'Domain zone' to clientarea page with domain list. Data for that column are filled by 'ClientAreaPage' hook and conists of the last part of domain name(com, net, org, etc). I'd like to add the possibility to order the whole table with domains by this column, is there any ways to do that? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 19, 2014 Share Posted March 19, 2014 it would probably help to know which template your using (default, portal, custom etc), but I think a lot of these sort orders are coded specifically into whmcs... so while it may be possible, I doubt it would be simple. 0 Quote Link to comment Share on other sites More sharing options...
Andy Garsia Posted March 21, 2014 Author Share Posted March 21, 2014 I use some kind of custom template based on standart item. Well I solved my problem, it doesn't look like a proper way but it works. I just added code to ClientAreaPage hook, which gets all the domains by current user and sort them using my own sorting function. After that replace $domains variable in global $smarty with new one 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 21, 2014 Share Posted March 21, 2014 Hi Andy, i'm glad to hear you figured out a solution - it could be useful to post the code here for anyone wanting to do a similar thing. 0 Quote Link to comment Share on other sites More sharing options...
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.