Page 1 of 2

[Plugin] Bludit Search beta version

Posted: Mon Aug 06, 2018 6:54 pm
by Kanna
I created own Search plugin it will show results on HomePage xD

Screenshot
Image

Download
http://www.mediafire.com/file/7l1ev5hbu ... h.zip/file

all you need to use ?s like wordpress use it for search .

For Theme

Code: Select all

<form role="search" action="<?php echo $Site->url(); ?>">
<input type="search" placeholder="Search" name="s" autocomplete="off" value="<?php echo isset($keyword)  ? $keyword : ""; ?>" class="search" data-provide="typeahead">
<button type="submit" class="search-btn"><i class="icon-search"></i></button>
</form>

Re: [Plugin] Bludit Search beta version

Posted: Tue Aug 07, 2018 9:55 am
by hastenichgesehen
Sehr schön!
Mit ein wenig Feintuning kann man das Suchfeld in jedes Theme einbinden.

http://www.hsw2.de/bludit/

Re: [Plugin] Bludit Search beta version

Posted: Tue Aug 07, 2018 5:50 pm
by LRAM
Bonjour

I added the pluggin in question, nothing appears to me. I suppose it is necessary to modify a file of the theme and paste the code. home.php?

Re: [Plugin] Bludit Search beta version

Posted: Tue Aug 07, 2018 5:59 pm
by hastenichgesehen
Ich habe es in die navbar.php kopiert.
Aber es kommt ja auf das Theme an.

Re: [Plugin] Bludit Search beta version

Posted: Wed Aug 08, 2018 8:06 am
by LRAM
Ok
danke
I will try

Re: [Plugin] Bludit Search beta version

Posted: Wed Aug 08, 2018 8:27 am
by LRAM
Ok, it work fine here
https://sucrepop.com/Ukulele/

I thought the result will be a list of links to the different post to choose from
It's the list of all post concerned by the search
nevertheless it's a fine tool
thanks a lot

Re: [Plugin] Bludit Search beta version

Posted: Wed Aug 08, 2018 8:45 am
by Kanna
this plugin uses

Code: Select all

$dbPages->getPublishedDB(true);
for searching so inside content it won't look.

about not showing results you need only form input with

Code: Select all

name="s"
because ?s= is hardcoded for search maybe i will add setting for it xD

2nd issue is that example you got 40+ results but when u go to 2nd page it will not show because ?s= is removed from url and paginator does not append it.

Re: [Plugin] Bludit Search beta version

Posted: Wed Aug 08, 2018 11:20 am
by hastenichgesehen
Kanna wrote: Mon Aug 06, 2018 6:54 pm ...
all you need to use ?s like wordpress use it for search .
...
WordPress "?s"-Suche findet auch Beitragsinhalte und nicht nur Textteile in Beitragstiteln.

Re: [Plugin] Bludit Search beta version

Posted: Wed Aug 08, 2018 12:13 pm
by Kanna
I know but this plugin use

Code: Select all

$dbPages->getPublishedDB(true);
so it won't get content so difficult so search content atm.

I'm thinking of using different approach for it.

Re: [Plugin] Bludit Search beta version

Posted: Wed Aug 08, 2018 12:28 pm
by Edi
Thank you for the plugin!

Search engines are not easy to code... In the meantime you can also use external search engines:

https://planet-bludit.ch/verschiedenes/suche