Keyword

Plugins for K2

  • André Fort
  • André Fort's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #106213 by André Fort
Plugins for K2 was created by André Fort
Hi guys, I'm doing some modifications to the plugin "User Extended Fields for K2" the JoomlaWorks, to better suit the site of a client, and I have some questions:

1 - You can leave the plugin as a field mandatory? How?
2 - I created a field of type date, but it appears in this format: YYYY-MM-DD and I want to appear as DD-MM-YYYY. You can?
3 - Is it possible to validate the fields before making your record? How?

I ask apologize for the excess of questions, but I never found a documentation about creating plugins for K2.

Hugs.

(translated by Google)

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

More
11 years 10 months ago #106214 by Lefteris
Replied by Lefteris on topic Re: Plugins for K2
Hi. Since you need something more advanced than just fields, you should consider making an element or use directly the "onRenderAdminForm" plugin event. This way you will be able to add the fields as you wish, along with your JavaScript or CSS code. For the validation you need to trigger the "onK2AfterSave" event.

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

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

  • André Fort
  • André Fort's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago #106215 by André Fort
Replied by André Fort on topic Re: Plugins for K2
Thanks Lefteris Kavadas !!

;)

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


Powered by Kunena Forum