• Content Count

  • Joined

  • Last visited

Community Reputation

11 Good

About Hurme

  • Rank
    Jr. Member

Recent Profile Visitors

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

  1. 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.
  2. 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!
  3. 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.
  4. 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?
  5. Ryan, Instead of an image, have you considered using a short video clip / gif that shows the backend in action?
  6. Hi, I solved the issue by making using the tags option in the files field and by disabling the multi language description altogether. I had read about the language-alternate fields, but had forgotten about them by the time I was doing this site. So cheers for the reminder. I still think the file fields description is behaving in a not so logical way. Luckily it's a problem you can easily get around in multiple ways.
  7. Hi, I was making a multi language site with download section that would automatically list files based on language. I was going to check if $file->description had any content on current language, but this does not work as it always returns the default language even when different language is selected. Example: Site has three languages, english (default), french and german. document_en.pdf | en desc "lorem ipsum" | fr desc "" | de desc "" document_fr.pdf | en desc "" | fr desc "lorem ipsum" | de desc "" document_de.pdf | en desc "" | fr desc "" | de desc "lorem ipsum" It would iterate through all of these and only return the documents that had description in current language. Problem is it will always return document_en.pdf no matter which language is selected. For french and german it correctly only shows them according to the language. Currently using PW version 3.0.95.
  8. Hi, Thanks for the answer! I'll try this later this week, once I continue working on the site. I do have ProFields and I understand what you mean. It might very well be worth doing it like you suggested.
  9. I've added language support to a website. Language switching works and fields that have content in the second language show up correctly. But none of the translated strings work. As I've understood, the most simple way to add translated string is: <?php echo __('This will be translated'); ?> When I go to the second language in backend, it correctly finds this string in the file it was used, and I can write the translation below it. How ever in frontend nothing ever happens, and the website always shows "This will be translated" instead of the translation itself. Also a curious note, backend will find translated strings from template files, but if I add string to a file starting with underscore, _main.php for an example, it's unable to find those translations even when I write the file path manually. Am I missing something here? Where could I start looking for answers? I've read through the language docs and browsing old topics, but I haven't been able to solve this problem on my own.
  10. Hurme

    Eventually I'll look into it if no one gets to it first. I considered it at some point, but I've been too busy with more important things. I'm not really a programmer but I took a look at the interceptor earlier and it seems doable for me to modify the code enough to get it to work. ;-)
  11. Nothing fancy, just solid basic sites for two different companies. Both happen to work mainly in construction sector. Both sites are only in finnish, but feel free to browse around. After a decade of Joomla I'm quite taken with Processwire, although having no background in any sort of programming the dive into PHP felt akin to jumping from 10 and landing on your stomach. ;-) Site 1: site 2: If the sites look somewhat similar, it's on purpose. Some structural pieces are being recycled to make work more efficient. Aside from Processwire we started using UIKIT and it's been a pleasant experience. Although I'd love to have automated way of using UIKIT lightbox for images added with CK editor.
  12. Well, in our case all the settings were all correct. We solved the problem by switching to an another web host, and it started working right away. Was the problem because of poor work on facebook's end or the host's is anybody's guess.
  13. Hurme

    Hi, I'm running into this error: AutoFbPost: post failed; click here to log in with Facebook. I'm already logged in with facebook, and if I click the provided link I get: Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings. How ever we're using the login-facebook module with same settings, which is working just fine. Are we supposed to manually add the Open Graph meta information for this module to work? Anything else that could be wrong?
  14. I'm having hard time getting this to work. I've setup the module with App ID and App Secret. The needed script is added in the _main.php. The App itself is public and both the Site URL and App Domain match. Yet all I get upon entering the "" is: I've setup multiple Facebook Apps before, but I've never run into this problem before. Does anyone have any experience with this?
  15. I would, but this is used mostly for news feed with text and other stuff too so I need to get more than the images.