Jump to content

adrian

PW-Moderators
  • Posts

    10,780
  • Joined

  • Last visited

  • Days Won

    346

Everything posted by adrian

  1. I can't tell for sure what the problem is, so I think you should try to simplify things down and debug each variable to figure out where things are going wrong. Bring it back to this: foreach($page->children("category=$input->urlSegment1") as $preview){ echo $preview->title; } Things to check are that the name of the category field is correct. Remember this must be the name of the field that is used in the template on the current page and not the name of the parent page that houses the child categories. Also try echo'ing $input->urlSegment1 to make sure it actually contains the name of the category you are looking for. If not you can firstly replace this with a hardcoded category name to make sure your selector is working, then track down why $input->urlSegment1 is not being populated. Hope that helps to get you sorted.
  2. Sorry, when you say: do you mean that the rss feed itself is not updating, or that IFTTT is not sending the changes to FB?
  3. Well Ghost gets great reviews: https://ghost.org/ It's free if you're selfhosting. But then again, you could also bootstrap PW into the site and use k's blog module still
  4. Is this a trick question http://modules.processwire.com/modules/process-blog/ http://modules.processwire.com/modules/blog-profile/
  5. Just a quick reply to let you know that it's already possible to upload an image to processwire from an external URL using the API. It is as simple as: $page->images->add('http://www.mysite.com/images/image.jpg'); Of course there is more work needed for doing this from the admin. This post might prove helpful: https://processwire.com/talk/topic/417-extending-image-field/
  6. Sorry - you're right - I was kinda wondering why your question was in this thread - I didn't think it would make a difference if it was an ordinary images field or a CropImage field, but it does I am sure apeisa will get back to you shortly on this.
  7. Default View set to grid works here and the toggle at the top right of the field when editing a page also works just fine. There were some updates to this functionality introduced in the dev version fairly recently, but that was to do with when there was only one image. I don't think anyone has ever reported the default view not working before.
  8. Here are a couple of relevant hooks for file uploading: Pagefile::install InputfieldFile::processInputAddFile If you don't already know about it, this should be helpful: http://processwire.com/api/hooks/captain-hook/
  9. Hi Alex, Welcome to PW! I can't tell from your question exactly how you are trying to set up the CKEditor field, but there are two steps. You need to create the field as a "Textarea" field on the Basics tab and then choose CKEditor from the Inputfield Type on the Details tab. If this is what you are trying and CKEditor is not an available option there, please let us know and we'll try to help you figure out what the problem is.
  10. Before your foreach, add this: $field->addOption('Please Select'); Then to force it to automatically select the member_page contract field do: if($member_page->get('contract')->id) $field->attr("value", $member_page->get('contract')->id);
  11. This solution from diogo looks clean and logical: https://processwire.com/talk/topic/1074-get-total-pages-pagination/?p=9411 What have you tried that didn't work? You can also get the count of pages like this: $num_pages = $pages->count("selector"); Then obviously divide this by the number of items you are displaying on each page and then ceil() the result. Although this option would require a second query to the database, so go with the first option if you can.
  12. Glad it works for you now! PW should be adding a number to the end of the name to avoid conflicts. When you say this doesn't work for you, is it with all names, or only with names with cyrillic characters in them? BatchChildEditor uses a custom naming method if the Overwrite Names option is checked in the module config, but if adding or overwriting, it uses the built-in method. What happens if you use the Add option and create to child pages with the same title - does the number get appended to the second child's page name?
  13. Github issue opened: https://github.com/ryancramerdesign/ProcessWire/issues/520
  14. Hey Joss, Not sure, but I just tested here on 2.4.4 and it's working fine, so I don't think it is a general problem. What's your JS showing? Any errors there? EDIT: Probably not likely, but any chance this might be the issue: https://processwire.com/talk/topic/6017-image-drag-drop-not-working-for-me-24/?p=58914
  15. Sorry Jonathan - I have played with some of these tools a bit in the past, but never really figured out which were best so I can't really offer any advice. I guess ideally I'd like to see options for lossless and lossy. It's strange I have always thought of PNG as a lossless format, but I know that things have changed on that front.
  16. This theme requires PW 2.4 because of the new "theme as a module" system.
  17. Could be totally off here, but have you tried start=0 in the selector in your hanna code?
  18. Hey Wanze, Just a small thing Could you please have the chart color config setting also control the color of the bar graphs throughout the module, rather than just the jQPlot charts? Thanks.
  19. Hi jacmaes, I have tracked down the issue. It is definitely a bug that should be reported to Ryan on Github. There are newly added checks for module permissions around line#457 of Modules.php (https://github.com/ryancramerdesign/ProcessWire/commit/2c0762d1f346a3f01171b4f65fa97242f17fd916#diff-995c5c9ce48d4bff459f52363c6e190eR457) The module that is blocking your access is actually ProcessPageSearch, which required page-edit permissions, which of course a guest user doesn't have. If you temporarily remove the permission check, or change the ProcessPageSearch permissions to page-view, it works again (obviously this is not the appropriate solution . Once that hack is in place though, there is one other new bug: {"errors":["Field 'it' is not allowed in queries"]} This can be fixed easily by adding this line to ServicePages.module inside the loop starting at line#174 foreach($k as $name) { if($name=="it") continue; //add this line Let us know if you want us to submit an issue of Github, or if you have taken care of it.
  20. Wow horst - just WOW! Once again, thanks for the amazingly detailed testing and for making the results available for all of us to see in such a well formatted and documented way!
  21. Hi Kae, Welcome to the forums! The default PW profile and the Zurb Foundation profiles that are available all come with a search box, search template, search page and associated search.php file. Have you tried using these? Or do you need something more customized? Well Kongondo just beat me to it
  22. It's not that I don't like the hamburger menu icon, but these days I associate it with a mobile menu, rather than a sidebar toggle.
  23. Thanks Nikola, Just playing around with this now - very nice It's great to have another 2.4 ready theme. I think it's time all the others listed in the modules directory get tagged as <=2.3 A few small things I have noticed. Scroll to top button closes the left sidebar I am not sure that the hamburger icon is the most obvious way of toggling that sidebar - maybe an arrow over at the top left of the page would be more obvious Your Pages menu item is not showing the new Tree and Find dropdown options (just made available in 2.4.4) With Lister (Page and User), there is an issue with the pagination buttons overlapping the selector string box With Kongondo's blog module the white text on the grey background doesn't work for the tabs very well. Not sure if this is something you should tweak, or he should tweak Thanks again for sharing! EDIT: Here is the change that is required to make the Pages dropdown work for 2.4.4: https://github.com/ryancramerdesign/ProcessWire/commit/0d6d11207e40bd605efc1f7e958c031845a05214#diff-543b5b46d33bea6194fe304104d022c6L208
  24. Sporadic errors like this that can't be reproduced consistently suggest it is a problem with your host. It is certainly not an issue with PW or it would happen every time you clicked on the same link. Ask your host to investigate, and if they can't fix it, change hosts. Here are a couple of discussions about the exact same problem that others have had with hostinger: http://forum.youhosting.com/topic6929-client-website-automatically-redirecting-to-hostingerinerror404.html http://www.000webhost.com/forum/customer-assistance/32262-error-404-redirect.html A little reading around about hostinger in general suggests that they are super cheap and unfortunately you get what you pay for You don't need a premium service, but in general it is a good idea to avoid the bargain guys!
×
×
  • Create New...