Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search plugin (I18N)
(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
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
pagination links somehow look like ?page=%PAGE
http://getsimple-themes.ru/lightbox/news/
Reply
(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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
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
Reply
(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 } ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(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
Reply
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/
Reply
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.
Reply
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...
Reply
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.
Reply
maybe a stupid question: Checkbox "Add to menu" is checked?
Reply
(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.
Reply
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!
Reply
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.
Reply
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 Smile
I checked - everything works.
http://getsimple-themes.ru/sorting/magaz...ategoriya/
Reply
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
Reply
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
Reply
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?
Reply
(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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
(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.
Reply
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.
Reply
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
Reply
(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.
Reply
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?
Reply
li {display:inline;} has got to be right
Reply




Users browsing this thread: 2 Guest(s)