Jump to content

matjazp

Members
  • Posts

    721
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by matjazp

  1. That's why I said I'm lucky. All my PW sites are "in the house" and my "clients" are my colleagues at work and they do what I say :-) I see. My "customers" are 95% from Slovenia so I don't have to worry about that, luckily. I haven't implemented webp on my sites so I didn't think about that because I just recently upgraded to PW that has webp support. On my sites images are rarely inserted into RTE. If this is the case then you may be better of using .htaccess strategy.
  2. Yes. I think you should go with webp using strategy 3 (using <picture>). Be aware that, based on my testing, webp image is not always smaller so I had to set quality to 80. On my sites, I don't use Autosmush because my editors prepare/optimize images before uploading them to PW and I serve them as original, I don't resize/optimize them. I consider myself very lucky in that regard as I know it can't be that easy with other clients. My opinion on optimizing assets (js/css/images/html) has changed lately. I used to be very pedantic on every byte I could shave off. But now? Do I care much if my css is 30% larger/smaller (in term of download speed)? Not really. Do I care if my image is 500k or 300k? No. We are in 2020. Free WiFi everywhere (at least here in Slovenia) and fast enough. WiFi 6 on the way. LTE/4G everywhere and fast enough (and practically free). 5G on the go. Web servers gzip content. Browsers use cache. What I do hate is javascript slowing down my web browsing experience, making the content reflow, serving me ads. So I browse with no js most of the time. I went off topic, sorry...
  3. Can't look at the source right now, but I don't think there is any customizable way of suppressing other then commenting the line that produces it. I haven't been working on this module lately but are you using experimental feature? I don't think this is the way to go now that we have webp support?
  4. Stumbled on this one: https://www.g2.com/products/processwire/reviews/processwire-review-1595157 1 out of 5 stars...
  5. Are you hitting maxAllowedContentLength? I think it's 30000000 bytes by default ...
  6. @teppo, that's what I do on my production sites. But on test environment, I try a lot of things and so there are some "test functions" just lying around... That's why I said that this is not a problem of the module (or the author of the module). But yes, the word "problem" is not quite adequate, thank you for the clarification.
  7. I changed namespace to ProcessWire and the error while editing a template is gone. The problem with page->render is still there, of course.
  8. I just cloned my basic-page template and now the error is gone... Oh my, have no idea what could be wrong with my template.
  9. Yes. <?php namespace ProcessWire; echo "basic-page template"; That's it! It must be something on my installation... On the other hand i just found out that if you use functions in a template, like this: function foo() { } and the try to generate, you get: This is not a problem with your module but rather with page->render() method...
  10. Thanks for the module! After installing it, I get this warning when editing a page: 1× PHP Warning: class_parents(): Class ProcessWire\StaticWire does not exist and could not be loaded in C:\inetpub\wwwroot\wire\core\Functions.php:955 The odd thing is that it happens only on one template and I can't figure it out what could be wrong with that particular template...
  11. Some encoding problems, this is how it looks when dashboard is empty: Learn how to add and configure panels reading the <a href="https://github.com/philippdaun/processwire-dashboard" target="_blank">documentation</a>. I guess documentation should be a link. EDIT: I see now it's multilanguage issue,
  12. @Robin S Sorry, we can't show this content because you do not have permission to see it.
  13. I guess "Add dashboard page to user dropdown navigation" isn't supported in AdminThemeDefault?
  14. When I add 'editMode' => 'modal' to the collection panel, this pops up: PHP Notice: Undefined index: host in ...\Dashboard\DashboardPanel.class.php:329 Perhaps you could use isset? if (isset($info['host'])) When modal is closed, there is an error in the console: Uncaught ReferenceError: UIkit is not defined Dashboard.js?v=0.5.0-1579071638:2 Can't debug this as js is minified.
  15. Perhaps actions col in collections (DashboardTableColumn__actions__) don't need to be sortable? Would be nice if we could set the icon for every shortcut in Shortcuts panel, regradless if page has the icon set. On the other hand, I can create my own panel :-) Is support for IE11 planned?
  16. Yep, working, even with {title} set for userLabel. Thank you.
  17. Title is not displayed even if I use AdminThemeUikit. Problematic is this line: $userLabel = $this->modules->getConfig('AdminThemeUikit', 'userLabel') ?: 'title|name'; // return "{Name}" Note that $userLabel is always {Name}, regardless of what theme is used. What happens if AdminThemeUikit is not installed? If I set $userLabel to 'title|name' then the title is displayed. Perhaps you should specify in module settings the minimum PW version (guess its 3.0.66 - when getConfig() is introduced) and minimum PHP version (at least 7.0?).
  18. @d'Hinnisdaël thanks for this module! haven't tested it properly, just quick observation: user label (title|name) is not displayed in headline in AdminThemeDefault. Also pagelist could use same margins.
  19. This is what I wanted:
  20. I have a site, recently upgraded to latest master and latest PHP. Almost every time I go to Pages or Setup or Modules in the admin navigation (I'm using AdminThemeDefault), I get a notice: "Cleared the admin theme navigation cache (topnav)." When I view modules.txt in the admin, after every XHR refresh, there is a new log entry, as seen on the screenshot: "Saved modules info caches". I cleared the cache folder and caches table in DB to no help. Any ideas? I don't think it has anything to do with the upgrade, as I reverted back to previous version of PW. Something with DB? EDIT: stupid me. I had $modules->refresh() in my admin.php Mods: you may delete this post.
  21. Now you got me thinking... As I'm logged as admin and I also set debug to true it's logical to see those messages. Looking at the source in Modules.php, the message about upgrading the module (version change) is shown for all users. As I'm not using Tracy on production site (currently on PW 3.0.104), I put those lines you suggested in admin.php and that showed two lines: AdminThemeDefault: Installed field "admin_theme" and added to user profile settings. AdminThemeDefault: To use this theme, select it from your user profile. Never saw those messages before, but after the refresh, there are gone. But then again, this popped up: Modules: Upgrading module (ProcessPageTrash: 1.0.2 => 1.0.3) when I went to empty the trash. So, it looks like just getting the module is not enough, since $modules->refresh() still state that: Modules: Detected 1 module version change (will be applied the next time each module is loaded):
  22. @dragan thanks for the info about great module from Adrian, but I'm not sure if this is what I need? I will not import/export, nor will I update modules - where update means fetching the new version from the github or somewhere else. If I want to prevent the info message "Modules: Upgrading module (modulename: oldver => newver)" for editors, I have to click around in the admin interface until all updated modules/fieldtypes etc. get updated to new version.
  23. Another question: while editing a page, is it possible to upload a predefined file? I have files field, there is "Upload file" button. Let say that I have another button, "Upload specific file" and I want that clicking this button automatically upload a predefined file, located on the server, not at the client. Just like "Upload file" button but without the file selection window, opened by the browser. I know all browsers prevent prefilling file values without the user interaction, so input type=file is not an option? I could (didn't yet try) add that preselected file to my files field via ajax call (any security issues with that?) but after that I would like all the acctions supported by InputfieldFile to take place (render "uploaded" file).
  24. You can enter URL in the file open dialog, where you could enter local file.
  25. Oh, didn't know that, thanks for the tip! But the point is that I don't want to upload a file. Maybe Robin's module adopted to my needs is the way to go... But at the and, I stil need some dummy file. Will think about (if users really want's this).
×
×
  • Create New...