Jump to content

wbmnfktr

Members
  • Posts

    2,089
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by wbmnfktr

  1. So... I just played with it a bit. Does NOT work: throw new PageNotFoundException(); Does Work: throw new Wire404Exception(); Tested it on a ProcessWire 3.0.133 installation. Are you maybe running the DEV 3.0.140 version?
  2. You use PageNotFoundException() while I only know and see Wire404Exception() in examples. Does it make any difference? Additional sidenote: Very old (2010 and 2013) thread but still... interesting.
  3. Have you seen this tutorial/guide? https://processwire.com/docs/front-end/how-to-use-url-segments/#best-practices
  4. I get paid by the hours so... oh wait. ? Good to hear it worked for you! ?
  5. Carefully and well planed. Parts of it could be migrated via API I guess and some parts need to changed manually. It all depends on several details we don't know, yet. Based on the details you provided... somewhere between a few days and a year. Plus the design part. How much books, movies, events, etc. need to be migrated? How many templates are needed? How ... ? What ... ? Who ... ? Hard to say actually. We don't know anything about the site, the data, the functionality. You should at least understand whats happening in the code itself. As you you didn't mention any eCommerce stuff or bookmarking or recommendation features there seems to be not that much of functionality in the code and therefore I guess it will be only be common template logic and maybe some data management. The hardest part will possibly be the content and data migration. As soon as those are in ProcessWire it should be a piece of cake.
  6. Whenever I had issues with databases in Laragon I re-used a database name. Means... I deleted a database, created a new one with the exact same name and afterwards I ended up in things like that. Maybe it was the reason here as well.
  7. At this point I'd like to open this issue to someone who is way more into hooks and custom functionality than I am. Maybe @bernhard or @adrian or @szabesz or @dragan ... they know a lot more about hooks and ProcessWire than I do. They will have a solution for this.
  8. Broken records were source of so many great samples in modern music. Just sayin'. ?
  9. Nothing is shared yet but will (hopefully) come very soon. Some insights can already be seen over at github. The client itself still exists but that business alliance for restaurants (my client, a friend of him and a 3rd party) didn't match that well so they stopped it almost right after the start. Let's see if it will be a cool profile. As stated above it's almost only data management with some nice additions. There will be no frontend that tries to be a theme or anything like that. Nonetheless... sharing seems to be the best option here. Or at least a nice option.
  10. Hard to tell for me as well. Maybe you could post some of your code here and tell us more about the overall setup. And details like ProcessWire version, the hook(s) you use, where they are placed (ready.php, a module, ...). That would help us to give more help and tips.
  11. First of all I'd test it without mandatory fields (first, middle, last name) to ensure everything else is working as expected. If that's the case I'd start with one mandatory field to check it's behaviour. Never done a similar thing in the past - so it's just a recommendation or workflow I'd try.
  12. Where do these pages come from? Their names are either randomly generated or as I assume created by a module - maybe even a repeater or pageTable field. Is your user a administrator/super user? Who deleted those pages/put them in trash? How did they end there? Manually deleting, API or module? Are these pages somehow locked? (can be seen in their settings tab) What templates do these pages use? Are these templates somehow special?
  13. I stumbled across this solution a few times. There is/was a bug in CKeditor which affected those multiple class setups.
  14. Try adding the classes in alphabetical order. { 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 w-100' } },
  15. Or this https://modules.processwire.com/modules/pagefield-pairs/
  16. // Source: https://processwire.com/talk/topic/3553-handling-categories-on-a-product-catalogue/?do=findComment&comment=37833 $manufacturers = new PageArray(); foreach($pages->findMany("template=carTemplate") as $car) { // add manufacturer from car page to manufacturers array $manufacturers->add($car->manufacturerField); }; // do whatever you want with the $manufacturers pages Something like this?
  17. I guess it's still too early for an issue response on Github. Let's compare the things we can compare: ProcessWire 3.0.132 PHP 7.2 Cloudflare Free Plan (default settings) webP Strategy 1 htaccess: non-www Redirect htaccess: https Redirect pagefileExtendedPaths NOT set As you don't have access to the Cloudflare settings... is there someone who can look into it? Maybe they use a load balancer, built in whatever. Maybe the site is still cached. Cloudflare CDN is sometimes bit of a PITA. Dev-Mode or DNS-by-pass would be nice to test out. Maybe there are even custom page rules that are image related. There is a lot of stuff someone can do there.
  18. Ok... that's tough than. I changed one of my sites (behind Cloudflares Free Plan) to strategy 1 as described here: https://processwire.com/blog/posts/webp-images-and-more/#strategy-1-automatically-delivering-webp-for-jpg-png-images It works, even in image URLs generated with size(). Ryan says this in the article: Maybe that's the reason.
  19. Does it work when you enable developer mode in Cloudflare? Just to check if it's really a Cloudflare issue.
  20. For freely positioned images you could try a repeater field containing: image field (single image) text or select field for position (relative, absolute) text field for x-position text field for y-position text field for height text field for width optional: fields for alt and description text Above this you might want to add something to change responsive behaviour and other settings.
  21. There are some threads with similar topics discussing your need. You may find some ideas on how to achieve it. But just for me to understand this better... why do you want/need such a weird URL? That doesn't make sense - generally speaking.
  22. It's like someone is putting wire between some processes. Oh... wait...
  23. As long as there is no WordPress involved. ?
  24. Never tried it with the core module but Croppable Image 3 works really good and has some nice additional settings and features. Maybe worth a try.
×
×
  • Create New...