Keyword

fron-end editing ovverride - "extra fields" tab layout

  • Myorai
  • Myorai's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago #144549 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

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Myorai
  • Myorai's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 months ago #144593 by Myorai
Hello Krikor,
Thank you very much for the answer.
will do.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum