We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

What is the best practise way of modifying a query used by the cpanel

Development and Programming

johnwbaxter's avatar
johnwbaxter
651 posts
15 years ago
johnwbaxter's avatar johnwbaxter

On the “category management” page the sort order of the categories is done in the model (category_model->get_categories) using order_by group_name.

What i would like is for the default sort order to be by group_id instead.

What is the best practise way to go about doing this? I don’t want to hack any core files as i would like this modification to be upgrade safe.

Any advice on the best way to do this would be awesome.

Thank you.

p.s i don’t want to do this with javascript or anything, i would like to do this using php (i can code and stuff but i want to know the right approach to solve this problem within EE)!

       
johnwbaxter's avatar
johnwbaxter
651 posts
15 years ago
johnwbaxter's avatar johnwbaxter

Woooooo it’s quiet in here! Crikey! Really? Nobody fancies even imparting a little bit of knowledge on this?

       
Kevin Smith's avatar
Kevin Smith
4,784 posts
15 years ago
Kevin Smith's avatar Kevin Smith

I’m still fairly fresh in the EE dev world, but I’d suspect you’ll need to create an Extension if you want to modify the core without actually altering the core files.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.