Jump to content

Domain list sorting by custom field

Andy Garsia

Recommended Posts

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?

Link to comment
Share on other sites

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

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated