Jump to content

elabx

Members
  • Posts

    1,523
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by elabx

  1. Maybe try setting caption directly without the set method: page()->image->caption = $description I'm thinking set method is trying to act on the Pageimage object properties, and not be affecting the image fields.
  2. Try setting the page's output formatting to false before saving. page()->of(false);
  3. What about executeFor?? https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module#L157
  4. If I remember correctly this wasn't working like expected due to Autocomplete using ProcessPageSearch. This github issue have some info and code that could be useful.
  5. This has happened to me when a Warning or Error is appended for some reason on the response of the ajax upload and the icon keeps spinning. Try disabling errors and warnings through php settings.
  6. Nice tip!! To elaborate on other examples, I do something like this to have this same "code to view" per page (in the sense of one code per page) like this on ready.php: if(!$user->isLoggedIn()){ wire()->addHookAfter('Page(template=sometemplate)::viewable', function($event){ $page = $event->object; $pass = wire('input')->get->text('pass'); if($page->page_pass && $pass){ if($page->isUnpublished() && $pass == $page->page_pass){ $event->return = true; } } }); }
  7. Are child pages published and not hidden? Does using using find() have the same issue?
  8. Hi! Wanted to know if anyone has a more elaborated guide on how to use Vuejs with Proceswirer for Process/Inputfield modules with hotreload and all the webpack nice thingies ? so that for example, I can view the process/inputfield module in development in the context of the ProcessWire pages/routes.
  9. If you don't want to get into server management/installation of lamp stack i'd recommend Ploi, Runcloud, Serverpilot or one those to skip that part. I've alway felt it is worth every penny.
  10. I think this might be happening! I remember this happening to me when working with the webp hooks. https://processwire.com/blog/posts/webp-images-and-more/#webp-image-strategies-in-processwire $wire->addHookAfter('Pageimage::url', function($event) { static $n = 0; if(++$n === 1) $event->return = $event->object->webp()->url(); $n--; }); Word from Ryan on that post:
  11. I've been using Sizzy and want to try this to see how it compares!
  12. Maybe saving it as a property of the page instance? $page->hanna_counter = $page->hanna_count + 1
  13. I've done this another way around by sending requests from Google Sheets to a URL with custom functions. https://developers.google.com/apps-script/guides/sheets/functions
  14. What a great looking website! Everything looks/feels on spot! And Shetland does look awesome too haha. PageimageSrcst is in all my installs from the moment it releases. Can't thank enough for that module!
  15. This just happened to me a few days ago when I disabled the tags on the image field (I think there is a Use Tags? checkbox). Adding it back fixed although I haven't had time to figure out what's going on.
  16. Are you doing any $pages->find() or get() on the pages with such performance?
  17. Any info on the last pages of this thread? I remember some issues with the most recent php versions.
  18. I do have maybe a weird setup:
  19. I think you're talking exactly about the Migrations module from @LostKobrakai and I believe you can use RockMigrations within it without problems. It says it's deprecated but works just fine, I'm using it on latest PW master. I do this exactly with that migrations module having the migrations in version control.
  20. Running 3.0.165 I have this weird thing happening where somehow pages with children don't show the Trash action, I can only delete them from the edit screen. I have access control enabled and the user with the role that shows this behaviour have the page-delete permission enabled and everything that seems to be needed to edit/publish/trash since the user has worked without issues up until noticing this detail. Single pages on the main root also display the Trash action. Parent Page without the trash action: First children with the Trash action: Forgot to mention this is all fine for superuser.
  21. Hi @bernhard ! Pretty much the same use as @Ivan Gretsky. I also use the backup functionality when making batch migrations of data along multiple installations or just when I want to do it quickly from cli.
  22. 110% agree. Everybody was so mad when they announced something that is NOT dropping your backups on a custom destination haha.
  23. There is also a place to put a selector string right bellow that custom find option, try this selector (hope im understanding your issue correctly): parent.template=mag-issuse, template=article, sort=-created
  24. Setting up the template selection to mag-issue and setting the field to single display under Details tab, and the template setting under Selectable Pages under Input tab. What exactly is not working well? Watch out for hidden pages too!
  25. Just had a situation where one of Runcloud utils came in handy, I was able to block a rain of requests coming looking for WordPress stuff with their per-applicatinon Firewall/ModSecurity settings. As someone who isn't really knowledgeable on htaccess or firewall settings, it came in super handy to save face with the client.
×
×
  • Create New...