[SOLVED] Can I sort extra fields groups?
- mmmaug1977
-
- Offline
- Moderator
-
Less
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?
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
-
Less
More
- Posts: 22
- Thank you received: 0
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.
- mmmaug1977
-
- Offline
- Moderator
-
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:
Directly BEFORE that line, insert this code:
You will find them at lines:
~72 in ajax.php
~182 in mefgfork2.php
let me know if you need any help.
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
-
Less
More
- Posts: 22
- Thank you received: 0
11 years 8 months ago #1561
by lcp298
Replied by lcp298 on topic Can I sort extra fields groups?
That's it!!
Thank you.
Thank you.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
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 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.