[SOLVED] Can I sort extra fields groups?

More
11 years 8 months ago - 11 years 8 months ago #1557 by mmmaug1977
Replied by mmmaug1977 on topic Can I sort extra fields groups?
Hi Laura,

Please let me know, where do you want to order the groups, on the edit form or on the item view page?

If on the item view page, do you have any other K2 plugins installed?
Last edit: 11 years 8 months ago by mmmaug1977.

Please Log in or Create an account to join the conversation.

  • lcp298
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 8 months ago #1559 by lcp298
Replied by lcp298 on topic Can I sort extra fields groups?

Laura Parker wrote: I only need to change the order on itemform.php as they already appear correctly on item.php

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago - 11 years 8 months ago #1560 by mmmaug1977
Replied by mmmaug1977 on topic Can I sort extra fields groups?
Hello Laura

Please edit the files: ajax.php and mefgfork2.php

Find this line in both files:
Code:
foreach ($efg as $group) {

Directly BEFORE that line, insert this code:
Code:
asort($efg);

You will find them at lines:
~72 in ajax.php
~182 in mefgfork2.php

let me know if you need any help.
Last edit: 11 years 8 months ago by mmmaug1977.
The following user(s) said Thank You: lcp298

Please Log in or Create an account to join the conversation.

  • lcp298
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 8 months ago #1561 by lcp298
Replied by lcp298 on topic Can I sort extra fields groups?
That's it!!


Thank you.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #1562 by mmmaug1977
Replied by mmmaug1977 on topic Can I sort extra fields groups?
You welcome!

Please try to post a review about MEFG at JED: extensions.joomla.org/extensions/extensi.../k2-extensions/23477

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum