Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search plugin (I18N)
I FOUND IT!!!

In gsconfig.php, disable the canonical option:

# Enable Canonical Redirects?
# define('GSCANONICAL', 1);
Reply
(2023-01-28, 21:02:33)tuxy Wrote: Today test the I18N Search plugin again, now installed GS CE in the root of my hosting (https://webkust.be), but the search function doesn't work, see my test-pages:

https://webkust.be/algemeen/
https://webkust.be/search/

Seems to work now.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(2023-01-28, 07:29:57)mvlcek Wrote:
(2023-01-28, 06:43:46)tuxy Wrote: Can i use Fancy URL's with the search plugin?

Yes, you can, if you have your server (e.g. .htaccess) correctly configured.
However, you must make sure that your rewrite rules pass on the parameters. For apache this would be done with the QSA flag, e.g.
Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L]

(2023-01-28, 21:31:30)mvlcek Wrote:
(2023-01-28, 21:02:33)tuxy Wrote: Today test the I18N Search plugin again, now installed GS CE in the root of my hosting (https://webkust.be), but the search function doesn't work, see my test-pages:

https://webkust.be/algemeen/
https://webkust.be/search/

Seems to work now.

Yes, when disable the canonical option in gsconfig.php Smile
Reply
check this https://skr.sh/sI7xmGmvrfd
Reply
(2023-01-28, 06:10:06)mvlcek Wrote:
(2023-01-28, 05:05:16)tuxy Wrote: For testing the search plugin, adding the shortcodes

(% searchform %)
(% searchresults %)

on this page https://gscms.webkust.be/algemeen/

It shows the searchform, but test search for a keyword: geld , nothing shows.

Also adding this code in the sidebar.php:

<?php get_i18n_search_form(array('slug'=>'search','showTags'=>0)); ?>

But the Tag Cloud don't show up.

For testing, remove the files:

../data/other/i18n_*_index.txt

so it can regenerate, but nothing helps :/

What i do wrong??

Using php 8.1

Thanks for being php8 compatibility tester ;-)

You specified 'showTags'=>0, thus no tag cloud is shown. Use 1 to show the tag cloud.
Additionally your page (often) shows php errors in the sidebar, so I suppose, you are still working on it.

(2023-01-28, 18:05:47)Oleg06 Wrote:
(2023-01-28, 09:06:31)tuxy Wrote: Try adding the tagCloud in my sidebar.php with: 'showTags'=>1

<?php get_i18n_search_form(array('slug'=>'search','showTags'=>1)); ?>

But doesnt't work!
Only the search form is showing


<?php get_i18n_tags(array('slug'=>'search', 'minTagSize'=>60, 'maxTagSize'=>160)); ?>

(2023-01-29, 00:05:54)Oleg06 Wrote: check this https://skr.sh/sI7xmGmvrfd
It's installed...

[font=Arial, "Helvetica Neue", Helvetica, sans-serif]Apache Mod Rewrite
Installed - OK[/font]
Reply
Have two extra questions:

1. How show all the pages indexed by the search plugin?

Adding this in a page, but shows: No results found

(% searchresults words=' ' %)

Trying also:
(% searchresults words:' ' %)

(% searchresults tags=' ' %)

(% searchresults addTags=' ' %)

...

2. I have childpages with a tag _post, so adding (% searchresults addTags=_parent_post %) in the parent-page editor. But nothing happen.

Try follow the docs, but sometimes missed some extra info, sorry i'm a little stupid Undecided

PS: maybe it's mistyping but on the usage-tab from the search-plugin the attributes are  with ':' and on this website: it is typed with '=',  it's a bit confusing how using the attributes.
Reply
Okay, i learn a lot, and found it (again) :

1. Shows all the post-pages (every page with the tag _post):

(% searchresults tags=_post words=' ' %)

2. Shows all the child-pages from a specific parent-page (change YOUR_PARENT_SLUG with the slug from your parent-page):

(% searchresults addTags=_parent_YOUR_PARENT_SLUG words=' ' %)

CASE CLOSED :-)

PS: again awsome plugin, good work Martin ;-)

UPDATE:
Adding the code in the category.php template (instead of the parent-pages itself):

$data_index->url , get the slug from the parent-page

<?php
$parent_category_slug = '_parent_'. $data_index->url;
get_i18n_search_results(array('addTags'=> $parent_category_slug,'words'=>' ', 'showPaging'=>1, 'component'=>'search_results', 'HEADER'=>null));
?>

Maybe it can help others ;-)
Reply
Hi
did you check this page ?
http://mvlcek.bplaced.net/get-simple/i18n
Reply
(2023-01-28, 07:29:57)mvlcek Wrote:
(2023-01-28, 06:43:46)tuxy Wrote: Can i use Fancy URL's with the search plugin?

Yes, you can, if you have your server (e.g. .htaccess) correctly configured.
However, you must make sure that your rewrite rules pass on the parameters. For apache this would be done with the QSA flag, e.g.
Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L]

(2023-01-28, 21:31:30)mvlcek Wrote:
(2023-01-28, 21:02:33)tuxy Wrote: Today test the I18N Search plugin again, now installed GS CE in the root of my hosting (https://webkust.be), but the search function doesn't work, see my test-pages:

https://webkust.be/algemeen/
https://webkust.be/search/

Seems to work now.

(2023-01-30, 18:11:16)Felix Wrote: Hi
did you check this page ?
http://mvlcek.bplaced.net/get-simple/i18n

Not yet, read only the docs about the I18N Search plugin on @mvlcek's website, stupid don't read it first about I18N, it looks useful info.
I use only one language, is the reason why not installed and reading the docs about I18N.

Is the I18N plugin necessary for a good working Search plugin?

 Thanks for the attention that i need also must read the other docs, for better understanding how the plugins integrated with each other.
Reply




Users browsing this thread: 7 Guest(s)