- Posts: 20
- Thank you received: 0
[SOLVED]Frontend editing MEF layout override
- jeffreyliu77
- Topic Author
- Offline
- Junior Member
-
Almost everything of default input fields will be removed. Tabs such as image, image gallery, extra fields, even the default text editor will be removed.
Only use all info from many MEFs.
Which file shall I override or modify besides itemform.php?
Please Log in or Create an account to join the conversation.
- jeffreyliu77
- Topic Author
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- jeffreyliu77
- Topic Author
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
Most probably there is a javascript error, can you find out whether there is a javascript error?
Please Log in or Create an account to join the conversation.
- jeffreyliu77
- Topic Author
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
Frontend EDITING save, now is working. But ADDING NEW k2 ITEM, still only display the default selected single fields group inside Category settings.
Anyway, I need study your code first, so that when the /default/itemform.php is opened at front end, all MEFs shall be displayed flatly for either editing or new data sets encoding , then, save back to table _k2_items: extra_fields and extra_fields_search.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
In some cases the MEFG ajax call is completed before the core ajax call of K2, which is initiated on changing the category, therefore the results of core K2 ajax call overrides the results of MEFG ajax call.
If you are able to modify the code, just edit the mefgfork2.php file, find this line:
Then save and test, let me know if this solved the problem.
Please Log in or Create an account to join the conversation.
- jeffreyliu77
- Topic Author
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
Thanks.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
It will be great if you post a review about MEFG to this page:
extensions.joomla.org/extensions/extensi.../k2-extensions/23477
Please Log in or Create an account to join the conversation.
- jeffreyliu77
- Topic Author
- Offline
- Junior Member
-
- Posts: 20
- Thank you received: 0
Mohamed Abdelaziz wrote: Hi jeffrey,
In some cases the MEFG ajax call is completed before the core ajax call of K2, which is initiated on changing the category, therefore the results of core K2 ajax call overrides the results of MEFG ajax call.
If you are able to modify the code, just edit the mefgfork2.php file, find this line:and replace it with this line:Code:$K2("#catid").on("change",function(){Code:$K2("#catid").unbind("change").on("change",function(){
Then save and test, let me know if this solved the problem.
After I removed all K2 related plugins which i had installed, with or without changing the code, it works. Hope it will not stop working in case i install any other extension.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
It will work with the code change, because if you installed more extensions, this make K2 more slower, therefore MEFG completes its processing and returns its result before K2, then the results will be overwritten by K2 again.jeffrey wrote:
Mohamed Abdelaziz wrote: Hi jeffrey,
In some cases the MEFG ajax call is completed before the core ajax call of K2, which is initiated on changing the category, therefore the results of core K2 ajax call overrides the results of MEFG ajax call.
If you are able to modify the code, just edit the mefgfork2.php file, find this line:and replace it with this line:Code:$K2("#catid").on("change",function(){Code:$K2("#catid").unbind("change").on("change",function(){
Then save and test, let me know if this solved the problem.
After I removed all K2 related plugins which i had installed, with or without changing the code, it works. Hope it will not stop working in case i install any other extension.
As you can see, it is advantage for MEFG thta it is faster than K2 in this area
Please Log in or Create an account to join the conversation.