Big search Block

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Big search Block

Post by RonP » 2025-09-13 16:29

Hi,
How can I get rid of the "Big search block" on the opening page?
big searchblock.jpg
big searchblock.jpg (17.02 KiB) Viewed 9141 times
Ron

User avatar
jfischer
Veteran Member
Posts:34
Joined: 2022-11-19 16:07
Location: Austria
Contact:

Re: Big search Block

Post by jfischer » 2025-09-14 14:28

Hello Ron

Create this script in footer.php. Then the large search field will disappear.

Best regards from Austria - Josef

Code: Select all

		<script>
		AppGini.disableHomePageSearch = true;
		AppGini.homePageSearchDescriptions = true;
		</script>

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: Big search Block

Post by RonP » 2025-09-14 16:18

Hi Josef,
GREAT, thank you!

Ron

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: Big search Block

Post by RonP » 2025-09-30 10:49

As a reaction on the latest Top topics for September 2025 and
Taming the "Big Search Block"
Why not an option within the General settings?

After every Project Generation the footer.php will be overidden, except when you exclude that.
Ron
Attachments
appgini-general-settings.jpg
appgini-general-settings.jpg (83.05 KiB) Viewed 8879 times

saymaad
AppGini Super Hero
AppGini Super Hero
Posts:131
Joined: 2024-06-03 16:17

Re: Big search Block

Post by saymaad » 2025-09-30 12:25

Hi Ron,

You're absolutely right to be cautious about modifying footer.php, since it gets overwritten each time you regenerate the project. Instead of changing footer.php, you can safely disable the large search block by adding this line:

Code: Select all

AppGini.disableHomePageSearch = true;
inside a <script> block in hooks/footer-extras.php. This file is designed to persist across project rebuilds, so your changes will remain intact.

Hope this helps!

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: Big search Block

Post by RonP » 2025-09-30 17:21

Hi saymaad,
Thanks for pointing an alternative, I’ll use that.
But….. I rather prefer this by the general settings!, so maybe a future thing?
Ron

saymaad
AppGini Super Hero
AppGini Super Hero
Posts:131
Joined: 2024-06-03 16:17

Re: Big search Block

Post by saymaad » 2025-10-01 07:00

Hi Ron, Glad the footer-extras.php workaround helped! you are absolutely right, having a toggle in Settings would be much cleaner and more intuitive, especially for users who prefer not to touch code.

That said, I think it's worth appreciating how far AppGini has come recently. Ahmed has shipped a ton of great features this past year:
  1. Side navigation bar for better layout flexibility
  2. PWA support so apps feel native on mobile
  3. Theme switcher
  4. User preferences for font size, theme, layout, etc.
  5. Search bar enhancements, including the "Big Search Block"
  6. Removal of 3 deprecated libraries for cleaner builds
  7. Markdown schema export for documentation and LLM prompts
  8. Improved time picker with quick-set buttons and minute-step config
Still, I totally get the sentiment, many users want to disable these new features without diving into hooks or manual edits, especially when deploying apps for their clients who prefer minimal interfaces. A one-click toggle would be ideal, and maybe it's something we'll see in a future update. Who knows, maybe Bootstrap 5 or even a TailwindCSS version of AppGini will land together with the option to switch between them (Being wishful and eagerly waiting to see updated JS and CSS libraries :D).

Until then, sticking to non-overwritable hook files like footer-extras.php is the safest bet.

Cheers,
Saymaad

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: Big search Block

Post by RonP » 2025-10-01 09:37

Hi Saymaad,

Okay, Clear for me. Wait what the future brings :D

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Big search Block - back again -

Post by RonP » 2026-03-29 13:50

Hi,
Ater using AppGini_V2613 I get back the "Big search block"
In footer-extras.php I have stated: (there is some more coding, however that still works)

Code: Select all

<! --250618:Ron Summary Reports: Aanpassing plaats Legenda grafische weergave */ --> 

<style>#barchart-legend.horizontal {
     right: -50%;
}>/style>
<script>
	AppGini.disableHomePageSearch = true;
</script>
<! -- 251024: Vanuit forum Appgini: extra mogelijkheid wijzigen "eigenaar" voor de rol "beheerder" */ -->
<?php
// inside hooks/footer-extras.php after confirming $mi['group'] is allowed we will add the button to change owner
$mi = getMemberInfo();
if(in_array($mi['group'], ['maintainers','Admins']) ) {
?>
So why doesn't it work now?
Ron

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Big search Block

Post by jsetzer » 2026-03-29 14:23

Don't know if this helps, maybe these are just typos:
<! --250618:Ron ..
I can see at least two places where you wrote
<! --
but HTML comments start with
<!--

Your IDE (like VSCODE) should already mark these as syntax errors.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: Big search Block

Post by RonP » 2026-03-30 09:16

Hi Jan,

Funny,
In the, former live site with AppGini-V2610 was this not a problem!
What I now found, thanks to your suggestion:

There is coded:

Code: Select all

}>/style>
Of course it should be:

Code: Select all

}</style>
After adjust that .... it works
Ron


saymaad
AppGini Super Hero
AppGini Super Hero
Posts:131
Joined: 2024-06-03 16:17

Re: Big search Block

Post by saymaad » 2026-04-02 07:12

This code shouldn't ideally work with any version of AppGini tbh :lol:

As Jan and Ron noted, there were three typos which makes the browser treat it as invalid markup, and that can break everything that follows.

Incorrect:

Code: Select all

<! --250618:Ron Summary Reports: Aanpassing plaats Legenda grafische weergave */ -->
	.........
}>/style>
	.........
<! -- 251024: Vanuit forum Appgini: extra mogelijkheid wijzigen "eigenaar" voor de rol "beheerder" */ -->
Correct:

Code: Select all

<!-- 250618:Ron Summary Reports: Aanpassing plaats Legenda grafische weergave -->

<style>
#barchart-legend.horizontal {
    right: -50%;
}
</style>

<script>
    AppGini.disableHomePageSearch = true;
</script>

<!-- 251024: Vanuit forum Appgini: extra mogelijkheid wijzigen "eigenaar" voor de rol "beheerder" -->
<?php
// inside hooks/footer-extras.php after confirming $mi['group'] is allowed we will add the button to change owner
$mi = getMemberInfo();
if(in_array($mi['group'], ['maintainers','Admins'])) {
?>
PS: from the last lines, I see you are using the code I shared earlier to change the owner of the current record using a custom modal, hope that it is serving the purpose.

User avatar
RonP
Veteran Member
Posts:319
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

Re: Big search Block

Post by RonP » 2026-06-30 14:00

Sorry for not replying to thi post sooner
The given solution works fine
Thank you

Post Reply