Jump to content

taotoo

Members
  • Posts

    79
  • Joined

1 Follower

Recent Profile Visitors

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

taotoo's Achievements

Full Member

Full Member (4/6)

38

Reputation

  1. While I've never encountered that particular error, I have solved other ones by removing empty lines from beneath the closing php tag in my ready.php file.
  2. Thanks for another great module Robin. Just a thought - I wonder if the icons might be inverted, e.g. so that an eye means the page is visible, and an eye with a strike through means it's hidden.
  3. You can use FieldtypeConcat, or do it with a hook. https://processwire.com/modules/fieldtype-concat/ // Merge First and Surname for Title and Name if($page->template == 'some-template') { // Don't change name field if page is going to trash if(!$page->isTrash) { // If the fields that make up the title are populated if($page->first_name && $page->surname) { // Set the title $page->title = "{$page->first_name} {$page->surname}"; // Sanitize the title as a page name $name = $event->wire()->sanitizer->pageName($page->title, true); // Set the page name while making sure it auto-increments if there is a sibling page with the same title $page->name = $pages->names()->uniquePageName($name, $page); } } }
  4. This is the one, thank you!
  5. Not sure if anyone has used this module yet. Example code from the module page (https://processwire.com/blog/posts/page-list-custom-children-module/): template=category >> parent=/blog/posts, categories=page.id I want to insert 'parent', as below, but it doesn't work. I'm hoping someone might know how to do it. template=category >> parent=/blog/posts, categories=parent.page.id
  6. You could try the Limit Repeater module to set a max number of rows. Alternatively, I have a feeling you may also be able to set a min and max number of rows within the field setup, if so you could set them to the same number. Or maybe use the Admin On Steroids module, enable the setting for it to add CSS classes for each admin page, then add CSS via the same module to hide the add new button.
  7. Dpi normally shouldn't matter. Are the problem images' px dimensions larger than the limits you have set? If using server side resize you could try client side.
  8. With method 2 htaccess should rewrite it from webp to jpg shouldn't it? Assuming that is what you're expecting it to do, I found the example htaccess code didn't work for me. But I found that the code below did work (of course YMMV). RewriteCond %{HTTP_ACCEPT} !image/webp RewriteRule (.+)\.webp$ $1.jpg [T=image/jpeg,E=REQUEST_image]
  9. FYI it works fine for me on my Android phone in both Chrome and Stargon (not sure which engine the latter uses).
  10. Maybe you could see if the control panel also displays the output of php.ini somewhere, and see if it matches those values. You could also create a php.ini file, and see if those values match. I might also try uploading files of various sizes around 75mb, have the browser inspector open to see if there's any indication of when it fails, and time the failure point to see if it's something like 30s, or perhaps a multiple of 5 or 7.5 in case it's related to CPU time and the server has a multicore CPU. I have a similar issue when creating variations - I get the endless spinner if the creation takes longer than 15s on a dual core server.
  11. I think "n" is simply an instruction to type the number of results that you would like to have per page in place of it.
  12. I had something similar when using the Title field in a repeater. I'm not sure if it's the same issue or not, but I think I solved it by going to the field's Access tab, turning on access control, and assigning the view permission to guests.
  13. Annoyingly I've just revisited the website and it's no-longer doing it! I'll check it again later. The GPU is a GTX750, and the display is low pixel density, with no scaling involved.
  14. On Chrome (and Firefox) on Win10 I do notice that with the browser window wider than about 1,000 pixels my mouse cursor slows down. The wider the window, the slower it gets. At 2560px wide, the mouse is at about half speed. This is with a modern CPU and also a GPU.
  15. This works great, thank you so much! I noticed that your code is based on a a PW v2.7 Pages.php file. My existing PW v3 Pages.php file had in it only this cloning code: public function ___clone(Page $page, Page $parent = null, $recursive = true, $options = array()) { return $this->editor()->_clone($page, $parent, $recursive, $options); } I just pasted your code in below this, and it works. Not sure if that's what I'm meant to be doing or not. Where does PW v3 keep all its cloning code? I found that I could just add the code below to the hook - it seems to prevent the contents of the field being copied over to the new page: $clone->image = null; $clone->save();
×
×
  • Create New...