Keyword

Complete Edit the FRONT-END submit form?

  • Kran Chi
  • Kran Chi's Avatar Topic Author
  • Visitor
6 years 2 months ago #169170 by Kran Chi
Hello,

At this time I know that it can not be done from panel but is there a good way to override this form?
I need to disable these items :

- All the Second tab : Publishing & Metadata
- These fields in First tab (Basic): Alias,Access level, Language

Thank you in advanced.

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
6 years 2 months ago #169172 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Complete Edit the FRONT-END submit form?
Hi Kran,

I think there are 2 methods to do this:
1- To use template overrides of K2, and edit the itemform.php file to implement what you need.
2- You can use jQuery in the submit form page to JUST hide the mentioned tabs and fields.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Kran Chi
  • Kran Chi's Avatar Topic Author
  • Visitor
6 years 2 months ago #169174 by Kran Chi
Replied by Kran Chi on topic Complete Edit the FRONT-END submit form?
I chose solution one. In fact itemform.php includes another file :
require_once(JPATH_SITE.'/administrator/components/com_k2/views/item/tmpl/default.php');

So I copied default.php to html\com_k2\default\itemform.php and seems working.
thank you.

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

More
6 years 2 months ago #169244 by JoomlaWorks
Replied by JoomlaWorks on topic Complete Edit the FRONT-END submit form?
Resolved then :)

Fotis / 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