(2014-03-08, 04:11:35)sbatko Wrote: I'm writing custom plugin for indexing/searching of News Manager posts based on i18n_search_dummy.
Everything works fine now but i noticed that its impossible to find words containing dots: "editgrid.com" for example (used in title).
Not only in my plugin but also in special pages.
The search plugin adds words to the index, and these words are defined as strings of "word characters", which in english probably is letters, digits, - and _, thus your example contains two words "editgrid" and "com".
You can patch the indexing by changing the regular expressions in addWords in indexer.class.php, but I'm not sure, if any other changes would need to be made. In any case you must make sure that you differentiate a dot within a word with the punctuation dot.
Instead of modifying good indexing code i decided to add some logic to process search string (parameter ?words=). Dirty hack is to manipulate $words (searchresults.php line 38) with some form of replacing or so, eg
replace dot with space works fine for domain addresses.
But i dont want to hack plugin code, is it posible to do this "right" way ?
May be filter or user function or so ? This may be used for language-specific or other manipulation of words.
I updated to 3.3.1 and also the latest versions of i18n: base, gallery, custom fields and search
Everything else works but I've run into a problem with the search plugin / custom rendering.
I'm using the search to display news, so I have this on a page :
And this works as before, ie. I get the expected result rendered by the component.
On the top of my news pages I use a component to fetch an image
Code:
{% comp_name "param1" "param2" "param3" %}
But this part doesn't get rendered at all, but text, links etc. following that outputs ok.
I rolled back the search plugin from 2.11.1 to 2.9.1 and it started working again. Tried looking for what could have changed but haven't found anything so far.
Any ideas?
I'm new to GS and building a bilingual news/article demo with GetSimple. I've installed special pages plugin and figured out how to use I18N search to generate the index page, which now loops through news/articles in both languages.
(2014-03-26, 02:57:57)JmT Wrote: I'd like just to get author information included to list item.
So I added a field called "author" with label "author" in I18N configuration.
How is it possible to get the author information (if it's available) to be part of the list item, for example like this:
News item 1 »
by John Doe
Just fill out tab "Search" on the configuration page of your special pages type. There you can specify how a search result item is displayed.
2014-03-26, 06:55:39 (This post was last modified: 2014-03-26, 06:57:46 by JmT.)
Ok... I'm starting to get there.
The problem is / was / apparently has been since the beginning of the day, that for some reason, the generated value of special field "author" always resets to "test" (which actually is the admin username of this setup).
If I
1. create or edit a special page,
2. type in "John Doe" in author field and save
3. Click "page options" to verify that John Doe is still the author - he isn't. John is gone.
Instead the [whatever the admin username is] has taken credit for the article.
I've created various types of special pages: News, Articles, Stories, Reports etc. and none of them can't store any other author value than the [admin username].
Any idea what might cause this unwanted behaviour and where to switch it off?
(2014-03-26, 06:55:39)JmT Wrote: The problem is / was / apparently has been since the beginning of the day, that for some reason, the generated value of special field "author" always resets to "test" (which actually is the admin username of this setup).
GetSimple automatically sets the field author to the current user.
Use another name for the field, like e.g. authorname.
(2014-03-07, 02:43:05)GPB61 Wrote: In particular, by appending framework's classes within the <ul>, you can easily transform the single <li> into grid divs rather than as plain lists. And this, of course, would allow a better control over the page rendering, in particular for responsive web sites, or to improve the cross-browser compatibility.
I agree, this would be extremely useful if implemented. I know I've seen a few folks request this in the past. @mvlcek is there any chance you can add this feature to the next version of i18n Search?
2014-03-30, 19:33:20 (This post was last modified: 2014-03-30, 19:34:52 by Oleg06.)
what needs to change in the plugin i18n search to get a separate plugin to work with the plugin i18n Special pages and as a result get it? http://tablesorter.com/docs/example-pager.html
(2014-04-04, 20:53:26)MicroCAD Wrote: Hi!
Is there a way to add and manage different languages in the PLACEHOLDER field? Thanks
Either add respective entries to the language files in /plugins/i18n_search/lang/ or add the PLACEHOLDER parameter to the search forms on your pages in the corresponding language.
(2014-03-30, 19:33:20)Oleg06 Wrote: what needs to change in the plugin i18n search to get a separate plugin to work with the plugin i18n Special pages and as a result get it? http://tablesorter.com/docs/example-pager.html
(2014-04-11, 02:27:37)MicroCAD Wrote: Why some "search-entry-excerpt" of certain pages (always the same) returns me three dots (...) and not the text?
A bit more information like what type of excerpt (paragraphs, words or characters, how many) and the content of the page in question would be appreciated. A link would also be nice.
2014-04-13, 02:10:31 (This post was last modified: 2014-04-13, 03:57:18 by MicroCAD.)
(2014-04-11, 02:48:02)mvlcek Wrote:
(2014-04-11, 02:27:37)MicroCAD Wrote: Why some "search-entry-excerpt" of certain pages (always the same) returns me three dots (...) and not the text?
A bit more information like what type of excerpt (paragraphs, words or characters, how many) and the content of the page in question would be appreciated. A link would also be nice.
I can't send a link, I'm working in local.
Content of the page is just text (h1,h4,p), I'll try to make an example:
In both two pages, I insert "abc" at the start of the <p> content.
If I search ABC the page results shows me two different kind of result:
1 (correct) - Title and initial content (30numWords) with "ABC etc etc-...."
2 - Title and... three dots.
If I copy all the content from the correct page to the other one, everything works.
I try to modify the "uncorrect" page content to discover what's wrong, but all I've found is that if I remove a date (company born in "1987") result only title without points! The div class for the content is just empty.
Thanks!
------------------update-----
I've just done a test online of the whole site and the search don't had the problem!
Probably something in local? Thanks (for all your plugins!)
2014-05-20, 19:57:37 (This post was last modified: 2014-05-21, 03:52:36 by MicroCAD.)
(2013-04-11, 00:39:33)GPB61 Wrote:
(2013-04-10, 21:35:00)mvlcek Wrote: Of course speaking of ASCII codes when using UTF-8 is rather weird...
Can you attach or PM me a page file with àfor tests, please.
I PMed a text file with the character and a couple of screenshots showing the problem.
Thanks for testing.
Hi, same problem with the excerpt and the word "à"
Found a solution for it?
2014-05-21, 20:14:29 (This post was last modified: 2014-05-21, 20:33:41 by olexandr.)
I need to search for two tags
One tag is necessary that the user selects from the list, and another tag that I wrote in the code
It is necessary that the user clicked on a particular tag, and search results were two tags, one on which he pressed, and the second that I wrote in the code.
Pages hav 2 tag, and they are in different pages of the parental
Visually search form should not be just a list of tags
I installed the plugin i18n search
(2014-05-21, 20:14:29)olexandr Wrote: I need to search for two tags
One tag is necessary that the user selects from the list, and another tag that I wrote in the code
It is necessary that the user clicked on a particular tag, and search results were two tags, one on which he pressed, and the second that I wrote in the code.
(2014-05-21, 20:14:29)olexandr Wrote: I need to search for two tags
One tag is necessary that the user selects from the list, and another tag that I wrote in the code
It is necessary that the user clicked on a particular tag, and search results were two tags, one on which he pressed, and the second that I wrote in the code.
You can use the parameter addTags, e.g.
Code:
(% searchresults addTags=product %)
No, it is necessary to the search form, and should not form the search.
As in the figure, only one criterion can I do in the code, and will be more of these forms, but it is possible as in the picture
2014-05-28, 09:16:14 (This post was last modified: 2014-05-28, 09:26:17 by Utis.)
As per this thread: http://get-simple.info/forums/showthread.php?tid=6369
I'm trying to use the Search plugin for generating a list of teasers for specific pages in a template. Thanks to mvlcek's reply and after a little bit of code diving, I came up with this:
This gets the desired results. Is there anything problematic / depreciated in this approach that escapes my novice eyes?
Secondly, should I worry about performance? If yes, what would be a good way to caching here?
And thirdly, before I dive into it: would the same approach work with the Custom Fields plugin? Because, while a 'special page' is the right thing in the approach above, for my other needs it would be more elegant/semantically correct to just enhance normal GetSimple CMS pages with a custom field.
EDIT: I think, the "$page_data = getXml(GSDATAPAGESPATH" line is superfluous, but it's definitely too late here and I'm going to bed now.
The approach above seems to work fine -- performance question not withstanding -- for the the specific task it tries to solve, like gettting a list of teasers and links for e.g. product pages.
But I also need to asign to almost every page a category (say: one out of three) and create a menu on the frontpage for each category.
This could be done by simply adding a 'category_<category>' tag to each page. But a much, much nicer and cleaner UI would be to have a custom field with a dropdowm menu. The latter I can get with the i18n_customfields plugin. (Wonderful plugins by the way!)
Is there a way to use Search for returning pages whose custom fields have specific values?
(2014-05-28, 20:05:03)Utis Wrote: (After getting a little bit of sleep ...)
The approach above seems to work fine -- performance question not withstanding -- for the the specific task it tries to solve, like gettting a list of teasers and links for e.g. product pages.
But I also need to asign to almost every page a category (say: one out of three) and create a menu on the frontpage for each category.
This could be done by simply adding a 'category_<category>' tag to each page. But a much, much nicer and cleaner UI would be to have a custom field with a dropdowm menu. The latter I can get with the i18n_customfields plugin. (Wonderful plugins by the way!)
Is there a way to use Search for returning pages whose custom fields have specific values?
With the I18N Special Pages plugin you can specify for each field, if the content should be indexed as words or as tag. Thus you could index a dropdown field as tag and tell I18N Search to return all pages tagged with this tag.
The (older) I18N Custom Fields plugin currently only supports indexing the words in the field. If you use a dropdown field with words that are not used otherwise (like "cVegetables" or "_vegetables_" - not tested) you can achieve the same by searching for these special words.
Hello
How can I search for multiple tags
For example, this code looks for two tags, but if they are both there, but as you can search the search results was even if there is only one page with these tags?