APPLY button

  • noel adams
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 8 months ago #145692 by noel adams
APPLY button was created by noel adams
Hi Tuan,
Is there an option to remove the APPLY button when adding an event from the front end? I can get rid of it in view/event/html.php by:
    protected function addToolbar()
    {
//        ToolbarHelper::apply('apply', 'JTOOLBAR_APPLY');
        ToolbarHelper::save('save', 'JTOOLBAR_SAVE');

Will this change cause other problems or do you have a safer method?
Thank you,
Noel.

 

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

More
4 years 8 months ago #145694 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic APPLY button
Hi Noel

We do not have a way to handle that at the moment. So you will have to modified code as you did and re-do it each time you update to future releases of Events Booking

Regards,

Tuan

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

  • noel adams
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 8 months ago #145695 by noel adams
Replied by noel adams on topic APPLY button
Thank you Tuan,
I have placed the modified module as an override and it is working well.
Regards,
Noel.

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

More
4 years 8 months ago #145696 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic APPLY button
I wonder how you implemented that change as override?

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

  • noel adams
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 8 months ago #145697 by noel adams
Replied by noel adams on topic APPLY button
I created an override folder in components/com_eventbooking/view. Copied event folder from view folder into the override folder and modified view/override/event - html.php to comment out as shown previously. As long as updates do not remove the override folder it should survive updates.
Regards,
Noel.

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

More
4 years 8 months ago #145698 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic APPLY button
Ah, Yes. We do not have parent call in that method, so override will be fine, sorry.
The following user(s) said Thank You: noel adams

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

Moderators: Tuan Pham Ngoc