Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Or this https://modules.processwire.com/modules/pagefield-pairs/
  3. Your problems are gone! :) https://modules.processwire.com/modules/connect-page-fields/
  4. Hi all, Having a strange problem with my CKeditor custom styles. Trying to add standard bootstrap classes to the image alignment options. But for some reason if I add multiple classes to the centred image option it disappears from the editor drop down. But with only one class it works. So this works: { name: 'Left Aligned Photo', element: 'img', attributes: { 'class': 'float-md-left img-fluid' } }, { name: 'Right Aligned Photo', element: 'img', attributes: { 'class': 'float-md-right img-fluid' } }, { name: 'Centered Photo', element: 'img', attributes: { 'class': 'img-fluid' } }, But this doesn't: { name: 'Left Aligned Photo', element: 'img', attributes: { 'class': 'float-md-left img-fluid' } }, { name: 'Right Aligned Photo', element: 'img', attributes: { 'class': 'float-md-right img-fluid' } }, { name: 'Centered Photo', element: 'img', attributes: { 'class': 'w-100 img-fluid' } }, Note the slight difference to the last line. I've tried escaping the hyphens in case it was that but doesn't help. Any ideas.... #puzzled!
  5. Hi, here is my question Home - Clinics - Doctors doctor.php template -> reference_clinic (page reference field) when i create new doctor i select the related clinic from reference_clinic field. Works fine! What i want is when i select related clinic on doctor template at the same time clinic template -> reference_doctor updated so, if i create a doctor i want to select a clinic. if i create a clinic i want to select doctor. Help please
  6. Today
  7. Go to /processwire/module/edit?name=TracyDebugger edit Tracy's settings: Check this option That way only Superusers can see Tracy on the live site. Hope that helps
  8. modified: Unix timestamp of when Pagefile (file, description or tags) was last modified. mtime: Unix timestamp of when file (only) was last modified. Taken from Pagefile API Reference.
  9. Maybe I could programmatically replace mtime with modified. Can you think of any reason why mtime would actually be needed vs modified?
  10. Thanks a lot. I switched from mtime to modified and the problem is gone :) Maybe you should add a note on the Rename rules to avoid using mtime.
  11. @PWaddict - I have managed to solve the problem you are seeing, but there is another issue when using $file->mtime in the rename rule for images in repeaters that I am having trouble fixing. The problem is that when you save an image, the mtime changes and there is an order problem with the mtime changing before or after the renaming of the pagefile which is causing problems. I noticed though that it all works fine if you use $file->modified instead. Would that work ok for your needs instead of mtime?
  12. Yesterday
  13. Yep, I'm getting the same results with you.
  14. Ok, I think I have narrowed it down - if you don't have "overwrite" checked and you use $file->mtime it doesn't know how to name the file at the correct point it needs to. It's also necessary to have "Rename on Save" checked to have this problem. Let me see if I can fix.
  15. Does it help if you use $filePage instead of $page for the rule? What about "name" instead of "title"? What about if you don't have the $file->mtime component?
  16. Hm, after I checked the "Overwrite existing files?" on image field the problem is gone. So, the module to properly work needs that option checked?
  17. Tracy displays them in orange color as orphans.
  18. I am testing on a multi-language site and just changed to max files 1 and it's still all working as expected. Sorry, I am not sure what else to look at right now. I am curious what Tracy's PageFiles panel reports after the initial saving of the page.
  19. The structure on my template is in this order: various fields Image field Repeater field Repeater field various fields The image doesn't display on frontend because it seems that it doesn't get saved in database??? I'm checking if the image exists like this: if($page->image) etc. There is nothing wrong in the code on template cause if I save the page AGAIN then this time the image is properly getting saved and displayed on frontend. Image Maximum files allowed: 1 Formatted value: Automatic EDIT: It's a multi-language site.
  20. @PWaddict - I feel like I have replicated your described workflow and I am not seeing any problems so I will need more troubleshooting from you. Why doesn't the image display on the frontend - is the code trying to display an image with a non-existant path? What code are you using to display the image? What are the image settings - anything related to the max files or overwrite settings that are relevant? Anything you can do to narrow it down further would be very helpful.
  21. Hello @adrian Today I noticed a very strange behaviour with the module. If I upload an image on the Image or CroppableImage3 field and then add a new repeater item on a repeater field and publish / save the page, the image doesn't display on front-end. The image and its variations are visible on back-end and on the related folder in assets. If I first add a new repeater item on a repeater field and then upload an image on the Image or CroppableImage3 field then there is NO problem. WTF? I verified that this is caused by the module cause when I temporarily disable the rule there was NO problem. My rule is: {$page->title}_{$file->mtime} with Rename on Save checked. I'm using PW 3.0.135.
  22. Hello. Today I noticed a very strange behaviour. If I upload an image on the Image or CroppableImage3 field and then add a new repeater item on a repeater field and publish / save the page, the image doesn't display on front-end. The image and its variations are visible on back-end and on the related folder in assets. If I first add a new repeater item on a repeater field and then upload an image on the Image or CroppableImage3 field then there is NO problem. WTF? I'm using PW 3.0.135. Can PLEASE someone help me? EDIT: It seems the issue is caused by Custom Upload Names module. I will post on the related topic.
  23. I just noticed that the folders are deleted now. So maybe it's all fine now. Does anyone know how the deletion works? Does PW execute some cron jobs from time to time which runs over the temp directory?
  24. Olsa, thanks for Somas post. This might be a solution, if wireTempPath won't work. I still hope to get to work. The question is actually quite simple: How can I get wireTempPath to delete it's folders?
  25. @Robin S Thanks for reply! That's exactly what I did. But only the && operator, because I don't need to automatically send a notification. The administrator must know that he has notified the user. If he forgot to check the notify_user checkbox, then after saving the page I will not be able to track categories changes.. The notification describes which categories have been deleted, which have been added, etc. if ($template == 'member') { $old = clone($page); $old->uncache(); $changed = WireArray(); $fields = ['categories']; foreach($fields as $fieldname) { if ($page->isChanged($fieldname)) { $changed->set($fieldname, $old->$fieldname); } } if ($changed->has('categories')) { $categories = WireData(); $categories->set('current', PageArray()); $categories->set('added', PageArray()); $categories->set('removed', PageArray()); foreach ($old->categories as $category) { if (!$page->categories->has($category)) { $categories->removed->add($category); } else { if (!$categories->current->has($category)) $categories->current->add($category); } } foreach ($page->categories as $category) { if (!$old->categories->has($category)) { $categories->added->add($category); } else { if (!$categories->current->has($category)) $categories->current->add($category); } } bd($categories->current, 'current'); bd($categories->added, 'added'); bd($categories->removed, 'removed'); } } This code in Hook after Pages::saveReady..
  26. Did you develop that site or someone else? Maybe there are some hooks in place. Did you try connecting in an incognito window (without any cookies set)?
  27. I thought it always shows a bar at the top? I havent actually properly used it...I'll check it out...
  1. Load more activity
×
×
  • Create New...