I FOUND IT!!!
In gsconfig.php, disable the canonical option:
# Enable Canonical Redirects?
# define('GSCANONICAL', 1);
In gsconfig.php, disable the canonical option:
# Enable Canonical Redirects?
# define('GSCANONICAL', 1);
Search plugin (I18N)
|
I FOUND IT!!!
In gsconfig.php, disable the canonical option: # Enable Canonical Redirects? # define('GSCANONICAL', 1);
2023-01-28, 21:31:30
(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: Seems to work now.
2023-01-28, 21:39:14
(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? (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: Yes, when disable the canonical option in gsconfig.php ![]()
2023-01-29, 00:05:54
check this https://skr.sh/sI7xmGmvrfd
2023-01-29, 00:33:54
(2023-01-28, 06:10:06)mvlcek Wrote:(2023-01-28, 05:05:16)tuxy Wrote: For testing the search plugin, adding the shortcodes (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 (2023-01-29, 00:05:54)Oleg06 Wrote: check this https://skr.sh/sI7xmGmvrfdIt's installed... [font=Arial, "Helvetica Neue", Helvetica, sans-serif]Apache Mod Rewrite Installed - OK[/font]
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 ![]() 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.
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 ;-)
2023-01-30, 18:11:16
2023-01-30, 19:20:32
(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? (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: (2023-01-30, 18:11:16)Felix Wrote: Hi 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.
In the sidebar.php i used this snippet for showing the Tag Cloud:
Code: <?php get_i18n_tags(array('slug'=>'tags', 'minTagSize'=>60, 'maxTagSize'=>160)); ?> Is there a with I18N Search way showing only the related tags on a single post page?
2023-02-11, 01:38:33
(2023-02-10, 19:30:06)tuxy Wrote: Is there a with I18N Search way showing only the related tags on a single post page? What is it you want to achieve?
2023-02-11, 02:43:35
(2023-01-28, 06:10:06)mvlcek Wrote:(2023-01-28, 05:05:16)tuxy Wrote: For testing the search plugin, adding the shortcodes (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 (2023-01-29, 00:05:54)Oleg06 Wrote: check this https://skr.sh/sI7xmGmvrfd (2023-02-11, 01:38:33)mvlcek Wrote:(2023-02-10, 19:30:06)tuxy Wrote: Is there a with I18N Search way showing only the related tags on a single post page? Hi mvlcek,
I have also a tagcloud in the sidebar, but this is for the whole site. See gewoonsimpel.be Now i will showing only the tags from a current blogpost-page. Nu example: Article1 shows tag7, tag4, tag9 Article2 has shows only tag1, tag6, tag7 Article3 shows only tag9, tag2 All this tags have also a link. When click on one of these tags, it shows a Page with a the articles that has thé certain tagx ... Similar like a 'classic' blogpost that showing the current tags from a Blog-Page. I know, i think is possible develop a foreach-loop with te template tag (Keywords) but maybe is simpler using your awesome plugin.
Found a solution:
Code: <?php This code snippet shows the tags (with the links) for the current page (blogpost). example: #tag1 #tag2 #tag3 ... tagx With the if-statement, exclude the virual tag _post and empty tags, from the list of tags from the current page. See the result at the bottom of this blogpost (or another blogpost on the website).
I have a multilevel menu and slugs, see this topic thanks to @mvlcek for the support.
Using three Special pages: - Province (grandparent) - City (parent) - Location (child) This is the url structure /grandparent/parent/child : ../province-1/city-1/location-1 ../province-1/city-1/location-2 ../province-1/city-2/location-1 ... ../province-2/city-1/location-1 ../province-2/city-2/location-1 ... ../province-x/city-x/location-x So is it possible search/filter only the child-pages from a province-x ? When looking in page's xml-file, it stores only the parent-page, but not the grandparent. Plan B = adding a field province to the special page Location, but hope that it is possible show the Location pages from a province (grandparent).
2023-02-23, 01:10:58
(2023-02-22, 09:12:54)tuxy Wrote: I have a multilevel menu and slugs, see this topic thanks to @mvlcek for the support. Currently you can limit your search based on tags:
(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? (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: (2023-02-23, 01:10:58)mvlcek Wrote:(2023-02-22, 09:12:54)tuxy Wrote: I have a multilevel menu and slugs, see this topic thanks to @mvlcek for the support. Hi mvlcek, If i understand, when adding the tag _province_1 ... _province_x to the Special Page Province (=grandparent-page) it can list the child-pages (Location-pages). This would be awesome. i will try this ![]() Thanks for your fast support mvlcek!
2023-02-24, 03:12:11
(2023-02-23, 19:56:39)tuxy Wrote: If i understand, when adding the tag _province_1 ... _province_x to the Special Page Province (=grandparent-page) it can list the child-pages (Location-pages). No, you have to add it to all pages you want to be found, all the pages below the grandparent page and probably the grandparent page itself. (2023-01-28, 06:10:06)mvlcek Wrote:(2023-01-28, 05:05:16)tuxy Wrote: For testing the search plugin, adding the shortcodes (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 (2023-01-29, 00:05:54)Oleg06 Wrote: check this https://skr.sh/sI7xmGmvrfd (2023-02-24, 03:12:11)mvlcek Wrote:Oh okay i understand, i will try it(2023-02-23, 19:56:39)tuxy Wrote: If i understand, when adding the tag _province_1 ... _province_x to the Special Page Province (=grandparent-page) it can list the child-pages (Location-pages). ![]()
Hi mvlvek,
A screenshot of my project (dogvalley.be) in alpha-stage rebuild with GS and I18N, following your advice: adding the grandparent-pages (provinces) as tags _prov_province-x. There is a lot of work todo, but it works ![]() For the parent using this snippet in city.php: Code: <?php I don't know, it is GS related, but when a parent-page (city) has hyphen '-' in the url, by example: ../provincie/antwerpen/heist-op-den-berg/ It does not show the locations (child-pages). When edit the city-page slug in dashboard to heistopdenberg (without '-'): ../provincie/antwerpen/heistopdenberg/ Then shows the locations correct. Is there a way allow the '-' character in the search-plugin? Regards, Christophe
2023-03-04, 04:27:57
(2023-03-04, 03:18:01)tuxy Wrote: In the search plugin all non-word-characters are translated to "_" (compare data/other/i18n_tag_index.txt). Try Code: $citySlug = '_parent_'.preg_replace("/\W+/","_",$data_index->url); BTW: the assignments within the function call serve no functionality except assigning the value to a variable, too, i.e. after the function call variable $max is set to 9999. PHP8 supports named parameters, thus you should be able to write Code: $result = return_i18n_search_results(tags: $citySlug, max: 9999)
Hi mvlcek,
YEAH!!! This works great. Awesome. Really thanks for solving this. i was afraid it doesn't work, but you do magic!!!! Okay, good to know about the php8 support. Change my code now to, what you advice. Code: $result = return_i18n_search_results(tags: $citySlug, max: 9999); |
« Next Oldest | Next Newest »
|