TOPIC:

how to change filter default 6 years 3 months ago #118081

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
Hi Again Pedro,

I managed to work with Advanced search box with keywords filter, but when you don't enter any keyword in the search field and press enter you can see the whole bunch of records.

I want to display only searched items, and on pressing reset or search button, the whole database should not show up.

Please guide me to the solution if you guys found any.

This is the link below where i posted this question :
crosstec.org/en/forums/15-usage/99007-he...efault.html?start=12

Please help me with this too.

Thanks

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

Arabic language not showing up 6 years 3 months ago #118297

  • lennerd
  • Offline
  • Developer
  • Developer
  • Posts: 4669
  • Karma: 72
  • Thanks: 411
Hello,

for this you will need to hack the Contenbuilderr code. The query which processes the search is located in :


administrator/com_contentbuilder/classes/types/com_contentbuilder.php

Aroundline 239 starts the function "getListRecords" which needs to be modified.

Please backup the this file befor you make any changes to it.
Regards,
Stefan

===============================================
Satisfied? Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

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

Arabic language not showing up 6 years 3 months ago #118345

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
Hi lennard,

I'm a noob to PHP coding, Can you please guide with the lines of code?

I'm sure this code will be helpful for all the other out there who are desperately looking for this solution.

Thanks mate.
The following user(s) said Thank You: anotart

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

Arabic language not showing up 6 years 3 months ago #118509

  • chrisal's Avatar
  • chrisal
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 6983
  • Karma: 187
  • Thanks: 629
Hello emrankhan,

please extract the following file to the path Lennerd mentioned:

File Attachment:

File Name: com_conten...lder.zip
File Size:6 KB


Please make a backup of the old file first and make further tests with it. I just done tests with the default filter.



regards
Chris
Attachments:
The following user(s) said Thank You: anotart

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

Arabic language not showing up 6 years 3 months ago #118518

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
Hi chris,

First of all thank you for writing this piece for me.

But unfortunately my question still remains the same.... In Advanced list filter Module - when you don't enter any keyword or leave it empty and press search button it shows up the whole records in the database.

Can we not have a option where on clicking search button it should give us a pop up message or a ajax message saying enter some value "xyx" for example. and only upon entering some value the search module should return the keyword that was entered.

Thanks in advance Chris and Team

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

Arabic language not showing up 6 years 3 months ago #118521

  • chrisal's Avatar
  • chrisal
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 6983
  • Karma: 187
  • Thanks: 629
Hello again,

so it doesn't work with the empty filter search?

I just tested it again and i don't get any records shown when i make an empty search?

The popup message is the next step.



regards
Chris

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

Moderators: ForumSupport
Time to create page: 0.055 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!