- Posts: 24
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- fron-end editing ovverride - "extra fields" tab layout
fron-end editing ovverride - "extra fields" tab layout
- Myorai
-
Topic Author
- Offline
- Junior Member
Less
More
9 years 11 months ago #144549
by Myorai
fron-end editing ovverride - "extra fields" tab layout was created by Myorai
hello everybody,
i have a problem overriding the layout of "extra fields" tab on the fron-end editing form.
i'm creating a complete override of the Front-End item's Editing form, including translation, RTL, bootsrap and many Tooltips, to help the site users create new items, since the default k2 form requiers some experience to handle correctly.
i'm working on the file: components/com_k2/templates/default/itemform.php
i'm attaching a screenshot of the Item's Image Tab (work in proccess...:) - as you can see i'm puting alot of work into it and i actually think it's gonna be excellence - BUT i can't seem to override the Extra Fields tab.
http://imgur.com/gToVUWQ
although the PHP code for this content SEEMS to be in the file i mentioned - it apears that it's actually loaded from somewhere else.
since Extra Fields are only availble on certein categories, it's not loaded with the complete form, but only when a relevant category is selected.
then the code is loaded from somewhere else and not from itemform.php - that's for sure.
i just have no idea WHERE IT IS coming from.
and i've looked.
did someone do it before and can direct me to the location of the Extra-Fields code of the fron-end editing layout?
thanks alot
Yorai
i have a problem overriding the layout of "extra fields" tab on the fron-end editing form.
i'm creating a complete override of the Front-End item's Editing form, including translation, RTL, bootsrap and many Tooltips, to help the site users create new items, since the default k2 form requiers some experience to handle correctly.
i'm working on the file: components/com_k2/templates/default/itemform.php
i'm attaching a screenshot of the Item's Image Tab (work in proccess...:) - as you can see i'm puting alot of work into it and i actually think it's gonna be excellence - BUT i can't seem to override the Extra Fields tab.
http://imgur.com/gToVUWQ
although the PHP code for this content SEEMS to be in the file i mentioned - it apears that it's actually loaded from somewhere else.
since Extra Fields are only availble on certein categories, it's not loaded with the complete form, but only when a relevant category is selected.
then the code is loaded from somewhere else and not from itemform.php - that's for sure.
i just have no idea WHERE IT IS coming from.
and i've looked.
did someone do it before and can direct me to the location of the Extra-Fields code of the fron-end editing layout?
thanks alot
Yorai
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 11 months ago #144589
by Krikor Boghossian
Replied by Krikor Boghossian on topic fron-end editing ovverride - "extra fields" tab layout
Hello Yorai,
The form looks indeed nice, Kudos!
The extrafields are being generated from the /media/k2/assets/js/k2.js file.
Since this file cannot be overriden you can use a jQuery script to add the necessary markup and/or CSS classes. Since you know your way around coding you should use jQuery's on() function.
The form looks indeed nice, Kudos!
The extrafields are being generated from the /media/k2/assets/js/k2.js file.
Since this file cannot be overriden you can use a jQuery script to add the necessary markup and/or CSS classes. Since you know your way around coding you should use jQuery's on() function.
Please Log in or Create an account to join the conversation.
- Myorai
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
9 years 11 months ago #144593
by Myorai
Replied by Myorai on topic fron-end editing ovverride - "extra fields" tab layout
Hello Krikor,
Thank you very much for the answer.
will do.
Thank you very much for the answer.
will do.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 11 months ago #144596
by Krikor Boghossian
Replied by Krikor Boghossian on topic fron-end editing ovverride - "extra fields" tab layout
You 're welcome Yorai,
Best of luck with your project.
Best of luck with your project.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- fron-end editing ovverride - "extra fields" tab layout