Jump to content

tpr

Members
  • Posts

    2,321
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by tpr

  1. You mean the page thumbs? There will be one global default (image field name), or template-field pairs for those who need more. Plus a setting for square thumbs, and that's all. I think these settings are easier to use because you can set everything at one place (module settings).
  2. @szabesz I use Soma's Page List Image Label module often and I think it would be nice having this feature inside AOS. While at it, I'll implement your request, it'll be named as "Compact page list" or similar. I think there's no need to make it customizable.
  3. I have tried to improve the page list but I have to admit it's close to perfect as it is (at least for me). I see that this tweak could save some space but I'll wait until other page list related needs arise.
  4. Never mind, I thought this was the case. Of course you can borrow code from AOS filterbox if you need, it has some additional features.
  5. I would use a CSS class and CSS background image for the icon, no need for an extra field.
  6. Not so strong, but how about renaming to "LOCAL (DETECT)", or something more obvious?
  7. Maybe they could be in the module docs.
  8. Just for the record, this works for gtmetrix (opens in new window): return '<form action="https://gtmetrix.com/analyze.html" method="post" target="_blank">' . '<input type="hidden" name="url" value="' . $page->httpUrl . '" />' . '<button type="submit">GTmetrix test</button>' . '</form>'; I managed to make it work in iframe but it's kinda hacky, I think it's better open it like this.
  9. tpr

    MarkupSrcSet

    Well, the first srcset (360,null) shouldn't be null, but perhaps this isn't the problem. Lazysizes uses the largest image even if you resize the browser. So if the page loads in desktop size, and you downsize it to 400px wide, it won't load the smaller images. In my tests it works only upwards (from small to large size).
  10. The custom php module works great for google speed test. I added a no-jquery javascript lightbox to it (modified version of squeral lightbox), called from my site js. The same could be added for gtmetrix but even using "?url=xxx" needs manual click on the "Analyize" button (the url is pre-filled though). I can share the code if someone needs.
  11. I haven't tried your module yet but FYI AdminOnSteroids has such feature, and it works with images too:
  12. I would have been probably use the Raptorize plugin to make it really clear but this will also do
  13. I'll see, thanks. I think a confirm (yes-no) dialog would be of more help here. Strictly forbidding to save the page may result in data lost if the upload never finishes (so you can't save the page itself at all).
  14. Yep, I use that now in an utility (win) but unfortunately gtmetrix uses POST, so there's no such easy way to get the results.
  15. I think an on-demand google pagespeed and gtmetrix page analyzis could be nice panel additions. On "on-demand" I mean they should analyze only on user request (eg. click on a button). Both have APIs but PS requires an api key, maybe gtmetrix too. I know it's a bigger request, I'm just asking whether you have thought about such feature.
  16. I like the idea of grouping/categorizing items but I'm afraid this is a usability step backwards. Now it takes much more time to find a setting, and even if you find it, on save the sections collapses so you need to find it again. I would suggest adding a hidden field to store section open states and update its value with JS, and on page load restore them. This setting could also be saved to local storage, I guess you got the idea. I see that such quantity of setting is hard to handle, perhaps this could improve it. Plus how about adding " float: right" to those KB/ms items? Maybe "margin-right: -12px" could be also beneficial, and I'm not sure the parenthesis are really required
  17. Here is an example for an undocumented feature: adding macros. Put this in 'site/ready.php' (or where you set global parameters for Latte, eg. _init.php or maybe _main.php): $view->_addMacro['custom iff'] = array( 'iff', // macro name 'if (isset(%node.word) && %node.word) { $x = %node.word;', // PHP code replacing the opening brace '}' // // code replacing the closing brace ); This will add an "iff" macro which eliminates the need of duplicating "$page->title" in the example below: <h1 n:if="$page->title">{$page->title}</h1> So instead of writing the above you can use $x: <h1 n:iff="$page->title">{$x}</h1> The "iff" macro also uses "isset()" so no worries if you throw in a property that doesn't exists, it won't generate an error. Using "$x" is arbitrary, you can set any variable name if you wish. Of course, you can use the alternative syntax too: {iff $page->title} <h1>{$x}</h1> {/iff} See more in the official docs here on creating macros.
  18. I think making those size/ms infos very light gray could improve readability. Perhaps something like #999 text color.
  19. v035 adds the abovementioned breadcrumb tweaks: long-click on breadcrumb item to view page in frontend ctrl+click to edit breadcrumb page It's relatively buried under the "Hotkeys" submodule but I think it fits there. I'm open to ideas on different implementation of this feature but I woud like to keep the current "minimal" style (eg. better not using icons or hover menu).
  20. Perhaps you could get it in one go using parent=... in your selector.
  21. Update: looks like it's SlimJet browser only, in Chrome longclicks seem OK. I got the longclick to work, now I need a similar bright idea how to get the edit link ("/edit/?id=XXX"). Perhaps I need to add all the parents' IDs to an inline JS and get it from there.
  22. My vote is: long click for view ctrl+click to edit or reversed Icons would make too much mess. Btw, I most of the time can't get the long-click work in Chrome 51 (the built-in Edit/View feature). I works 1 times out of 10 or 20. In Firefox seems to work fine.
  23. Good idea. I can't think of any drawbacks that could happen, but maybe I'm wrong. To avoid the clutter, I would do it on ctrl+click instead any visual icon or something. What do you think about it? Plus alt+click for edit for example, that's something I have already planned.
  24. As I see there's no way to get the actual link of those links. Maybe hooking to breadcrumbs and set the links to data attribute could work though.
×
×
  • Create New...