mod_eb_search customization

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 days ago #133730 by Russell Leigh
mod_eb_search customization was created by Russell Leigh
How can I add classes to the drop downs in the search module

In file templates\mytemplate\html\mod_eb_search\horizontal.php the dropdowns are rendered with echo $lists; which is not helpful

In the module helper the JHtml call which renders the field should be in the template file not the helper.

Is there some weird way to add the custom classes? I am trying to make this compatible with bootstrap4 but it's impossible to edit much of the html

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

More
4 years 4 days ago #133738 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic mod_eb_search customization
Hello Russell

The idea is move the code which build the dropdown from helper to horizontal.php

Exactly what you want to change with that dropdown?

Tuan

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

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 days ago #133748 by Russell Leigh
Replied by Russell Leigh on topic mod_eb_search customization
I just want to add the proper bootstrap classes e.g. "form-control" so it's properly compatible with bootstrap4. Right now it's just unstyled and looks bad

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

More
4 years 4 days ago #133749 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic mod_eb_search customization
Thanks. I see it now. Let's me works on it and make change to core package of the extension to have it works better with Twitter Bootstrap 4.

I will send you updated package on tomorrow. Please wait for me

Just for my reference, link to documentation getbootstrap.com/docs/4.0/components/forms/

Tuan

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

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #133855 by Russell Leigh
Replied by Russell Leigh on topic mod_eb_search customization
How can I add the 'form-control' class to the inputs in this module? I have overridden it but the select fields are in your proprietary form class so I can't add any classes to them.

I see you updated the plugin and said you added more bootstrap4 support but I had already overridden all of the registration forms in the component and this search form module is still not compatible with bs4

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

More
3 years 11 months ago #133856 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic mod_eb_search customization
Could you please remove the override you made for the module, then install this updated version of the module and check the result?

Tuan
Attachments:

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

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #133857 by Russell Leigh
Replied by Russell Leigh on topic mod_eb_search customization
I removed the overrides and then installed the new version of the component. I've even tried extracting the module from the component zip and installing it separately. Just has 'inputbox' classes

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

More
3 years 11 months ago #133858 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic mod_eb_search customization
Hello

Could you please make sure:

1. You installed the updated module which I uploaded in this topic joomdonation.com/forum/events-booking-cu...mization.html#133856

2. In Configuration of Events Booking, you set Twitter Bootstrap version config option to Twitter Bootstrap version 4

In my case, the class is valid, see the attached screenshot. Maybe you forgot one of the two steps above?

Tuan
Attachments:

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

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #133859 by Russell Leigh
Replied by Russell Leigh on topic mod_eb_search customization
That topic link just returns to this same page

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

More
3 years 11 months ago #133860 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic mod_eb_search customization
There is an attachment uploaded in the topic. Anyway. I just updated package on server with this module include

Maybe you can access to My Downloads menu item, download latest package of Events Booking, upgrade it to your site, then check the result again

Tuan

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