Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

14 Good

About Hurme

  • Rank
    Jr. Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm going to jump on this train as well. I've got a matrix with repeater inside and then a body field, just like MateThemes example above. This works title|headline|lead|body%=$q Also this works matrix.repeater_field.body%=$q But if I combine both like so, it wont return anything $selector .= ", title|headline|lead|body%=$q"; $selector .= ", matrix.repeater_field.body%=$q; If I try to enclose each line in parenthesis it returns every single page on the website, even if the search word is something that doesn't exist on the site $selector .= ", (title|headline|lead|body%=$q)"; $selector .= ", (matrix.repeaters.body%=$q)"; So I'm kinda almost there, but not quite.
  2. @gmclelland Your explanation was among the threads I read when I was trying to make it work. Here are some things I've tried: 1) Editing site\modules\InputfieldCKEditor/mystyles.js directly. 2) Renaming site\modules\InputfieldCKEditor/mystyles.js to customstyles.js (also changing the CKEDITOR.stylesSet.add( 'mystyles',... to 'customstyles'. Then adding proper path in the textarea fields Custom Editor JS Style Set to 'customstyles:/site/modules/InputfieldCKEditor/customstyles.js'. Basically doing it by your instructions. 3) Trying above but with the customstyles.js in my 'site/templates/js' folder instead. None of these has any effect what so ever. The third option simply wipes the styles pulldown empty altogether.
  3. I've gone through several threads here, but I cannot get this to work at all. Whether I try to edit the mystyles.js in site/modules or create a new .js file in templates/js it's always the same, either it gives the default options or the styles menu is empty without anything. Has there in been any progress on this? Anything new I should take into consideration?
  4. @jens.martsch I tried your "Test for setlocales" code, but it returned nothing on all of the langues (include Finnish which I added). I'll have to try it again once the site is actually deployed on the real server. My current installation is nagging about the set locales on every login, but I'm not very optimistic about finding out what's causing all this.
  5. Cheers @jens.martsch, I'll take a look at your script when I have the time. @wbmnfktr Currently I'm not entirely sure, as I didn't set up the local dev myself. But it is Apache based. Something run by the QNAS we have here. These kinds of things pop up every now and then, even though mostly things work as they're supposed to. I should try to keep more organised notes on when it happens, PW versions, PHP settings and so on. @gmclelland That is what I am doing. It's also set per language in the PW translations. This problem seems to happen every few installations, but not all the time by any means. Which makes it all the stranger.
  6. I tried logging out multiple times during the process, but no go. In the end I wiped the installation and started from scratch, and this time it worked properly. I'm not sure what went wrong on the first time. Don't get me wrong though, PW is hands down my favorite CMS. After 10+ years of suffering with Joomla and occasional WP and Drupal installations, it's very welcome change indeed. @wbmnfktr Setlocale is a big mystery for me. When you read the forums, you find a lot of different information. "Set it in config, no you must set it in _init, no this third place is the one that worked for me". Even after setting it per language in the backend, Processwire will often relentlessly keep popping up the notification that you must set setlocale correctly. I've finished now perhaps 10'ish PW sites, and sometimes it works and sometimes it doesn't. @horst Cheers, I'll keep this in mind.
  7. Hello, I'm unable to return Processwire back to english. Here are the steps I took: 1) I added Finnish language pack on the default language, as the site will be in Finnish 2) I then added a second language and left it empty, in hopes I could use it with my own profile to keep the backend in English. This does not work! Some of the menu items do return to English, but all of the module names and descriptions as an example are still in Finnish. This is a huge pain in the ass as it makes finding modules and reading the descriptions very difficult and confusing when I'm used to using PW in English. 3) I deleted all the Finnish translation files from default, and put them into the newly create language instead. This does not work either. The backend remains a mismatch of English/Finnish when language is set to English. If I set it to Finnish then everything works (e.g. everything is in Finnish). So what gives? Although I love Processwire, I'm also extremely frustrated with how the language is being handled. Half the time it just doesn't work, and don't get me started about setlocale which after dozens of hours of reading through the forums remains a mystery and will not work no matter where I set it and what values I try to use. Compared to other CMS's I've used, PW's language handling extremely difficult and obscure.
  8. I went through quite a few of the collations but none of them had any effect. Just to confirm, you guys think this is still a database problem? If so I'll try to find a solution and post it here if I manage to stumble onto something.
  9. Hello Sergio, I'm not so sure this has anything to do with the collation, but I will try few more. How ever I've never run into this problem before with different content management systems, nor with Processwire when using different forms.
  10. Hi, It was utf8_general_ci before. I changed it to swedish but this did not have any effect and the problem continues. Thanks for trying though.
  11. I'm using Ryans default site profile search as a starting point. Only thing I've modified is what fields the search looks into. The site is in finnish and I've run into problems with Scandinavian letters like ä and ö. 1) The search "öö" will find results "oo" which it obviously shouldn't 2) The search seems to add quotation marks " around those letters. Which causes problems in multiple ways. 2.1) I've set the search query to fail if it isn't at least 3 letters long. With quotation marks öö becomes "öö" and so it passes this test, which is not good. 2.2) If the search result doesn't find anything it returns "Your search "query here" didn't find anything." With Scandinavian letters It becomes: "Your search ""öö"" didn't find anything. Which is also not good. Although I can get around this by removing the quotation marks before it prints them it's only a bandaid to something that shouldn't be happening in the first place. Setlocale has been set to fi_FI.UTF8 in config.php, but I'm not honestly sure how to test this, and I don't know if it connected to this issue. I've tried to look into this for a while now, but with little results. Anyone got any good ideas?
  12. Hey, I just wanted to say that this kind of functionality is super important for many websites. I just spend three hours looking for a solution until I stumbled on this. Seriously consider adding it to the documentation. Now I can easily show only news item that actually has content in the relevant language.
  13. I see, so in a way you have to go about it in reverse. I moved the whole hidden problem inside a foreach loop that spits out the search results, but it's good to know this is solvable by the selector alone. Thanks!
  14. Hi kongondo, That was one of the first things I tried, but I couldn't get it to work. Any chance of writing down a simple example? $selector = $pages->find=("(template=x|y|z), (template=a, include=hidden), (title|body~=$searchquery), (bunch|of|other|fields~=$searchquery), (even|more|fields~=$searchquery)") The above obviously doesn't work, and I'm having problems following the logic.
  15. So I spend couple of hours trying to find a solution for a problem that must be pretty common, but didn't find any simple solution. I'm building a search for a website and I need to find pages from certain templates, and in one of these templates that selector must include hidden pages. Something like "template=x|y|z OR (template=a, include=hidden), (title|body~=$searchquery)". Is there any way to combine all this in one selector?
  • Create New...