Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by prestoav

  1. OK, I found the problem. OPCache was enabled in the new version of MAMP Pro. Just turned it off and everything refreshes as it should. Hope that helps someone!
  2. Hi @Laikmosh, I think I have disabled all caching modules in PHP, certainly socache and file_cache_module. In terms of the cache expiry time, I'm not sure to be honest. If you have any ideas where that might be hiding I'd greatly appreciate it!
  3. I wondered if anyone has seen this and maybe has a fix? After editing Page templates are saved but code updates do not update the rendered immediately, even with a hard refresh of the page (shift+refresh). It seems to cache the page for a few mins (3-4) regardless of PW / MAMP cache settings. This applies to rendered HTML, rendered PHP variables and site_debug errors. I'm experiencing the same thing on Google Chrome Firefox. PW 3.0.184 Anyone else seen this and / or found a fix?
  4. Hi @Robin Wow, what a seriously awesome reply thanks so much. I'm going to be implementing this today. Thank you!!
  5. I am re-working an advert editor on a marketplace site and one of the most requested features is to be able to reorder the images that have been uploaded. To do this I need to be able to move existing images between separate page fields (let's call them image_1, image-_, image_3 etc.). The fields are all setup to have only one image each in the field setup. So far I have the functionality sorted to allow advert owners to delete images or upload replacement images for each field if needed and that all works fine. I also have an edit form that tracks the images as they are dragged around in JQuery UI so that, when the edit form is submitted, they post-processing can see the original field the image was in and the intended field that the image needs to move to as a result of the reordering. I'm now stumped as to how to best move the actual files around so they show in the right order, both in the live advert and in the edit form if it's edited again. Has anyone found a good way to do this? The stumbling block is that each field can only tae one file at a time so it feels like I need to move all the files to be moved into a temporary location then move them back into the right, new spots. Any suggestions very much appreciated!
  6. Works a treat, thank you 🙂
  7. Superb, thanks I'll try that out!
  8. I'll certainly look into that.
  9. @Robin S Thanks for getting back to me. Your initial suggestion does work on live sites in a domain root but, sadly, not in a development environment where different sites are housed on sub folders. For example, if the site is at www.mydomain.com then the resulting link is www.mydomain.com/admin/page/edit/?id=1016 and this works from all admin pages. However, if the site is at localhost:8888/dev_site_1/ then the link created is localhost:8888/admin/page/edit/?id=1016 (i.e. the 'dev_site_1' is missing) and the resulting link does't work. I'll investigate the hook method of course but many devs might find this useful to work in their framework sites. Thanks again for the good work.
  10. Nice work @Robin S! One Issue I've come across that I'd be really keen on a solution for is to support $config->urls in the URL field. For example, I have a 'Site Settings' page in all my sites where the client can edit the global company details like phone, email, address etc. I'd like to add a link in the top admin bar to this page so it's easy to find (some sites have a lot pf pages in the tree)! I can do it once the site is launched with an absolute URL but I'm struggling with a relative URL that I can add to my Framework site. This is because the correct relative link depends on the page the 'Settings Page' was accessed from: This would work from another edit page: ../../admin/page/edit/?id=1016 However, it would need to be this from the page tree: ../admin/page/edit/?id=1016 One fix would be to support $config->urls in {} e.g. {$urls->admin}page/edit/?id=1016 As per these docs: https://processwire.com/api/ref/paths/ Hope this helps and thanks for the module!
  11. Thanks BitPoet. I was using AoS for a while but I found it didn't play nicely with the admin UI Kit theme in places and I understand AoS is no longer being developed so I've stopped using it in production. It's a shame because it really did add some nice features.
  12. Hi Zeka, Doh, I can't believe I didn't spot that! thanks for the tip. Marked as solved.
  13. Hi folks, I've set up a field to link to an other internal page and with a Input Field Type of Page List Select. All work well until you want to remove a selection altogether. Adding a page in from the list or changing it is fine but I can't find a way for the editor (or Superuser) to remove a selection once it's made. See screen grab attached. Clicking on 'Change' shows the list of pages to choose from but no way of removing any selection to leave it blank. I ended up deleting that line from the database manually but obviously that's not a solution. Anyone found out how an editor can do this? PW 3.0.165 Thanks!
  14. Hi there. Yup, you guessed it. Thank you, I can't believe after all this time I missed that!
  15. PW 3.0.165 / Admin Theme UIKit Today's head scratcher! I have 20+ PW sites running on my localhost under MAMP at localhost:8888, many of which are PW 3.0.165 / UIKIt Admin theme. Today I noticed on one site the admin 'View' links in the page tree and the page editor are removing the port number from the URL. so rather than linking to 'localhost:8888/site/page' they are linking to 'localhost/site/page'. To make things even more weird the other admin links ('edit' for example) leave the ':8888' intact. Finally, it's only happening on one site, the others on the same host are fine. I've looked at the .htaccess and there are no rewritebase rules in operation. I wondered if anyone else had seen this and figured out what that may have happened on any thoughts on possible reasons? Thanks, as always, in advance.
  16. Yup, that's it exactly, I have MultiLang installed but only one language (me default installation ready for multilang sites). I'll mark this solved. thanks for the link to that thread @wbmnfktr 🙂
  17. Hi all, I could have sworn I used to be able to use the site generic 'title' field as a sub field of a repeater field. However I've tried to do this on two 3.0.165 sites recently and, while it will add the title field in the repeater field setup, it wont save the repeater title sub field's content when the repeater is used in a page template and edited. It;'s not a big issue but I wondered if this was a known restriction?
  18. Hi @matjazp, Thank you for your help, I'm not sure I would have tracked this down without that last suggestion to comment our the hidden visibility. Long story short it was my own fault! I built this site a long time ago and, in my naivety back then, added a protection line at the beginning of the main admin.php template that redirected front end users if they were to ever stumble on a real admin page using Fredi (the previous FE editor I was using). That line was redirecting front end users as soon as FEEL was trying to open an admin page. Oddly that wasn't happening with Fredi!?! Anyway, it's now working as expected and it was my fault not the module! Thanks again!
  19. The more I look at this the more I suspect a permissions issue. It works perfectly for the Super User, just not for any other role. Checking the permissions for the 'editor' user like this, just before the call to FEEL to create the edit button: $perms = $user->getPermissions(); foreach ($perms as $perm) {echo $perm->title . " | ";} if ($page->editable()) {echo "Page is editable.";} I get this: "View pages | Edit pages | Delete pages | User can update profile/password | Page is editable." Every piece of evidence is suggesting it should work for the user but it just doesn't unless the user is a super user. 😞
  20. Hi @matjazp I'll do that as I'm really curious to see what's going on. It makes no sense that it works for the super user but not other user roles, even when they apparantly have the same permissions for page edit and creation.
  21. Thank you @MarkE, I'll definitely take a look!
  22. Hi Robin, Yes, that was my understanding too. I have been using that for quite a while without issue. The other thing I removed (which also maybe the cause but I don't think to) was the reference to the root page as $pages->get("/"). Maybe that was the 'root' cause?
  23. Thanks for getting back to me @matjazp. That's a shame it's no longer supported. I tried your suggestion of commenting out the check lines in the the .module file and go straight to the line: var editForm = iframeContent.find('form#' + (mode === 'template-edit' ? 'ProcessTemplateEdit' : 'ProcessPageEdit')); But sadly that made no difference. In the .js file it seems to come down to this bit of code failing: if (editForm.length) { if (mode !== 'template-edit') mode = 'page-edit'; processPageEdit = true; } else { editForm = iframeContent.find('form#ProcessPageAdd'); if (editForm.length) { mode = 'page-add'; processPageAdd = true; } else { // close the modal processSaveRedirect = true; setTimeout(function () { $.magnificPopup.instance.close(); }, 100); return false; } } logging editForm.length shows a val of 0. So, the process arrives at this check but has no content to work with.
  24. Finally found the issue! In the template set I was using the following in various places to retrieve the root page: $pages->get(1); In V3 that doesn't work. However, this does: $pages->get("id=1") All works as expected once those were swapped out.
  25. Hi @benbyf If you right click on the image in the CKEditor field and select "Image Properties" then click on the quote marks icon you can edit Img Alt there.
  • Create New...