Posts: 2,094
Threads: 54
Joined: Jan 2011
2016-02-14, 03:22:17
(This post was last modified: 2016-02-14, 03:22:36 by mvlcek.)
(2016-02-10, 21:11:22)FrédéricG Wrote: @mvlcek very very nice plugin. but any project to make a better navigation ?
Some ideas to improve (perhaps it's already possible but how ?)
...
3. Is it possible to add on the header tag prev and next (cF. https://support.google.com/webmasters/answer/1663744) like this, if we are on page 2 :
<link rel="prev" href="http://localhost/getsimple/blog/" />
<link rel="next" href="http://localhost/getsimple/blog/?page=3" />
This is not possible due to multiple reasons: - in the header nothing is known about the paging in the content
- there could be multiple search results on the page, and additional ones in a sidebar
Posts: 1,928
Threads: 88
Joined: Apr 2010
2016-02-16, 18:03:35
(This post was last modified: 2016-02-16, 18:13:30 by Oleg06.)
pagination links somehow look like ?page=%PAGE
http://getsimple-themes.ru/lightbox/news/
Posts: 2,094
Threads: 54
Joined: Jan 2011
(2016-02-16, 18:03:35)Oleg06 Wrote: pagination links somehow look like ?page=%PAGE
http://getsimple-themes.ru/lightbox/news/
Thank you. I only tested with the following in gsconfig.php, which creates links /search;3?tags=getsimple and works :-(
Code: define('PAGIFY_SEPARATOR',';');
Fixed in 2.13.1.
Posts: 12
Threads: 2
Joined: May 2015
Hi,
I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.
-Abuhayyan
Posts: 2,094
Threads: 54
Joined: Jan 2011
(2016-03-08, 16:06:05)abuhayyan Wrote: I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.
It does not output anything - you have to use the result - it is a map of tags to urls, e.g. (not tested):
Code: <?php
$tags = return_i18n_tags();
foreach ($tags as $tag => $urls) { ?>
<span><?php echo $tag; ?> - <?php echo count($urls); ?></span>
<?php } ?>
Posts: 12
Threads: 2
Joined: May 2015
(2016-03-08, 17:36:48)mvlcek Wrote: (2016-03-08, 16:06:05)abuhayyan Wrote: I used <?php return_i18n_tags(); ?> in the theme component sidebar to list all tags from all pages but nothing is returning back. How do I go about it? Also would like to show the number of times the tag has been tagged in all pages.
It does not output anything - you have to use the result - it is a map of tags to urls, e.g. (not tested):
Code: <?php
$tags = return_i18n_tags();
foreach ($tags as $tag => $urls) { ?>
<span><?php echo $tag; ?> - <?php echo count($urls); ?></span>
<?php } ?>
Hi mvlcek,
Thanks. It worked. Amended this part <ul><li><span><?php echo $tag; ?> - <?php echo count($urls); ?></span></ul></li> in order to list it in bullet form.
How do you capitalize the first letter of the listed tags?
How do you hyperlink the tags to open the list of such pages containing the tags? Showing the title and an excerpt, clickable to open the full page.
Thanks,
Abuhayyan
Posts: 1,928
Threads: 88
Joined: Apr 2010
2016-03-18, 06:23:16
(This post was last modified: 2016-03-18, 06:51:25 by Oleg06.)
Martin, please add a checkbox to the plugin settings I18N Search to disable the tags <ul> and <li>.
They are very interfere when you use the plugin "Special pages" and various frameworks.
I did it for myself, but I'll have to re-add that functionality after each update.
http://prntscr.com/agjw7s
Maybe it will be useful for other users.
http://getsimplecms.ru/plaginy-dlya-gets...8n-search/
Posts: 153
Threads: 10
Joined: Mar 2015
2016-04-07, 01:43:31
(This post was last modified: 2016-04-07, 15:19:21 by asemion.)
Hi, for all.
Very nice and useful plugin. Many thanks to mvlcek from me too.
The overall operation of this plugin logic I almost understood.
It works very well with single Tags and Words. Contents is filtered correctly and quickly.
But all additionally entered filters works with the logical AND condition.
Is the proposed in the plugin filter connection with condition OR?
So I want to ask the question - how to make in order to filter the content by using a few one kind of Tags or Words with logical OR condition?
For example:
I have a catalog of products, and it is indexed (as tags) by manufacturers. When I choose for example manufacturer Bosh - content correctly filtered and only show results that are produced by Bosh. But when entered an additional manufacturer like AEG, the filter does not show content completely. What should be done to show the content from of the two filters at once?
Is it possible to do so we can work with a several of these tags or words in the filters? This is how to make such filtering system, which uses e-commerce CMS for their catalogs filtering?
Thank you in advance for your answers.
Andrejus.
Posts: 1
Threads: 0
Joined: Jun 2013
Hi, I have a feeling that this is obvious, yet I have a following problem:
Using i18N Search plugin alone.
How to force this plugin to work in my specific language ALWAYS.
Sometimes it defaults to English sometimes picks second language on the same browser...
Posts: 88
Threads: 19
Joined: May 2012
Hi,
I have an issue with secondary nav not showing up on a page. Both the pages below are using the same default template which is calling in a sidebar component with the following code:
<?php get_i18n_navigation(return_page_slug(),1,1); ?>
http://pweaveanea.org/pwea-photos/
This page is not pulling in the secondary nav in the right column, there is only one child page, but it is not showing.
http://pweaveanea.org/what-is-pwea/
This page does pull in the secondary nav in the right column
Any suggestions for what I should look for to solve this?
The site has been updated to the most current version. The plugins have been updated too.
Thank you for any help you can provide.
Posts: 538
Threads: 12
Joined: May 2013
maybe a stupid question: Checkbox "Add to menu" is checked?
Posts: 88
Threads: 19
Joined: May 2012
2016-09-28, 03:48:18
(This post was last modified: 2016-09-28, 04:02:09 by sarnaiz.)
(2016-09-28, 03:42:02)Bigin Wrote: maybe a stupid question: Checkbox "Add to menu" is checked?
Ha! Not a stupid question. You are correct! That was the issue. For some reason I thought it was not supposed to be checked and when I went back and looked thorugh the page settings again it was supposed to be checked. Sheesh. What a goof.
Thank you so much for asking your question!! You made me relook at the pages.
Posts: 538
Threads: 12
Joined: May 2013
2016-09-28, 04:02:10
(This post was last modified: 2016-09-28, 04:04:07 by Bigin.)
Have you tried to use 18N_SHOW_PAGES as the fourth parameter? http://mvlcek.bplaced.net/get-simple/mul...igation:en
EDIT: Ahhh OK, you are welcome!
Posts: 1,928
Threads: 88
Joined: Apr 2010
2016-10-13, 02:48:22
(This post was last modified: 2016-10-13, 02:50:00 by Oleg06.)
Can I do the sorting switch, like this? http://opencart.templatemela.com/OPC08/O...input-sort
I know that can be sorted by name, price, or any other field, but how to make such a switch I do not know.
Posts: 1,928
Threads: 88
Joined: Apr 2010
2016-10-13, 20:17:50
(This post was last modified: 2016-10-13, 21:43:22 by Oleg06.)
Looks like I found a way to change the sort by clicking.
It needs to create clones of the search page with the language prefix _priceplus, _titleplus , in General with any (I18N required)
You just have to create the pages drop-down lists or links to select your created pages
I checked - everything works.
http://getsimple-themes.ru/sorting/magaz...ategoriya/
Posts: 43
Threads: 3
Joined: Nov 2012
2016-10-18, 06:51:24
(This post was last modified: 2016-10-20, 00:07:50 by GPB61.)
Hello,
I was wondering if there is the possibility to list the results by publishing date but in reverse order. I tried using '-' before date but without success.
Thank you
Posts: 30
Threads: 4
Joined: Feb 2016
Is there an easy way to change the HTML coding of the pagination on search result pages? Currently it outputs:
div class="search-results-paging
span class="first"
span class="previous"
span (1)
span (2)
...
span class="next"
span class="next" (I think this is a bug and should be "last". It is definitely the one with the double greater than symbols)
/div
And what I've like it to output is the Bootstrap HTML for pagination:
ul class="pagination"
li class="first"
li class="previous"
li (1)
...
li class="next"
li class="last"
/ul
Posts: 15
Threads: 3
Joined: Oct 2014
2016-12-28, 05:45:01
(This post was last modified: 2016-12-28, 06:30:05 by AnthonyV.
Edit Reason: More details
)
Hello I have tried to download the search package but my system complains that it contains a virus. Specifically "Win32/Spursint.A!cl".
Note: My system is Windows 7. I got the virus warning when downloading the zip.
- I then downloaded the zip with an Ubuntu VM and it downloaded without issue. (Which does not mean much)
- I then extracted the zip and did a quick scan and did not find any issues.
- I then copied the extracted files to the same Windows computer and the AntiVirus was not triggered.
I am still somewhat concerned because the last thing I want to do is give my users a virus.. anyone have any thoughts on this?
Posts: 2,094
Threads: 54
Joined: Jan 2011
(2016-12-28, 05:45:01)AnthonyV Wrote: Hello I have tried to download the search package but my system complains that it contains a virus. Specifically "Win32/Spursint.A!cl".
In this case you should try a better anti virus software ;-)
The zip only contains php, html, js, css files/code.
To make sure you can test the zip on virustotal.com or a similar service: I just did this and it says it's ok.
Posts: 15
Threads: 3
Joined: Oct 2014
(2016-12-28, 06:07:49)mvlcek Wrote: (2016-12-28, 05:45:01)AnthonyV Wrote: Hello I have tried to download the search package but my system complains that it contains a virus. Specifically "Win32/Spursint.A!cl".
In this case you should try a better anti virus software ;-)
The zip only contains php, html, js, css files/code.
To make sure you can test the zip on virustotal.com or a similar service: I just did this and it says it's ok.
I just saw your answer now. My AV is Microsoft Security Essentials.
Thanks.
Posts: 15
Threads: 3
Joined: Oct 2014
The search is installed and working well. I love how fast it is.
Now a question: How would I go about excluding pages from the search index or from the search results? Specifically I want to exclude pages that are not in the menu and which don't have a parent.
As an alternative I would like to be able to specify a list of slugs to exclude or something like that.
Currently the only options I see are:
- to do custom indexing or
- "process, parameter: post-processing of the results".... but I was not sure how to use that....
Thanks again.
Posts: 1,928
Threads: 88
Joined: Apr 2010
2016-12-29, 05:13:54
(This post was last modified: 2016-12-29, 05:14:18 by Oleg06.)
code to search
Code: <?php get_i18n_search_results(array('addTags'=>'_search', 'DATE_FORMAT'=>'', 'max'=>10, 'i18n'=>0, 'numWords'=>'30', 'order'=>'created','showPaging'=>1,'HEADER'=>'','NOT_FOUND'=>'Not Found','component'=>'search')); ?>
I use plugin I18N Custom Fields.
http://prntscr.com/doztwm
Posts: 15
Threads: 3
Joined: Oct 2014
(2016-12-29, 05:13:54)Oleg06 Wrote: code to search
Code: <?php get_i18n_search_results(array('addTags'=>'_search', 'DATE_FORMAT'=>'', 'max'=>10, 'i18n'=>0, 'numWords'=>'30', 'order'=>'created','showPaging'=>1,'HEADER'=>'','NOT_FOUND'=>'Not Found','component'=>'search')); ?>
I use plugin I18N Custom Fields.
http://prntscr.com/doztwm
Thanks that works.
Unfortunately the default does not apply to existing pages so I will need to edit them all to apply that value.
Posts: 59
Threads: 6
Joined: May 2015
Posting as a last resort. I'd like to use the search results as a list of categories on a page except to have them displayed in a single line. I need a little help with the CSS to get it to do this, please. I got the tagclassprefix figured out but I've been googling and trying several things for over an hour and can't get the list to display inline. Source code looks like this:
Code: <li class="search-entry nav-categories">
I tried all manner of combinations of "nav-categories" and "li" {display:inline;} in the Innovation Theme style sheet but nothing is working. What the heck do I put in the CSS to get it to display inline?
Posts: 1,127
Threads: 136
Joined: Feb 2012
li {display:inline;} has got to be right
|