Jump to content

szabesz

Members
  • Posts

    3,023
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by szabesz

  1. Hello, You can use a site profile (even an exported one) only during the installation process of ProcessWire, that is why you need to put your exported and extracted site profile in the root directory of the site next to install.php, meaning alongside with all the other site profiles ProcessWire comes with. Start the installation process as normal and pick your exported site profile when prompted to choose one.
  2. Excellente! We cannot thank you for all the hard work you share with us. Where is the donate button, btw? ?
  3. How about doing it only for objects with ID and Array/WireArray? Just a simple isset/instanceof to decide what to do?
  4. Another UX thing is that icons on the left require shorter mouse movements, well most of the time ? Sure... I am really thinking of the basics here, nothing more: id, count() that's all that comes to my mind ?
  5. @LostKobrakai shared a paginator module two years ago: https://github.com/LostKobrakai/Paginator
  6. Hello, I have not used it but you might want to give it a shot: http://modules.processwire.com/modules/markup-processwire-photoswipe/
  7. Thanks, looks ok, except the possibility of the icons "jumping" because of the scrollbar. Is it possible to move them to the left instead? If it's a collection of pages (WireArray and derived) then we could see the number of pages, for example. My idea is to see the basics so that there is no need to click on anything if that is enough. BTW, it will also work with bd(), won't it?
  8. Your idea is to stick to "dump", while Adrian's idea is different. Let's not try to merge the two ideas, but come up with a solution to support Adrian's original idea which is great, I think.
  9. Then let's not call it "dump" ? Seriously, we need debug info and not "dumps". I'm longing for a version which outputs both so there is no need to use options or different method calls, and I really do not mind if that one is not d() but maybe i() (short for info) or whatever, if d for dump is misleading.
  10. I agree, we should avoid making this "impression". However, UI-wise I like the first approach a lot more: more compact and makes a group of the two. Cannot you somehow output this:
  11. @adrian Hi, If using Toggle All to turn on all panels, then when not enough memory is available we only get this in the source code of the page: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3008800 bytes) in .../site/modules/TracyDebugger/tracy-master/src/Tracy/Helpers.php on line 133 Could there be a more graceful way to notify the developer? Since it is in the HTML output, I had to dig it up to figure out why the debugbar "disappeared" while the rest of the page was rendered ok.
  12. I do not think making the devbar pop-out is a good idea, at least I keep it always on even when I'm dealing with design so it is good to have it sit there while not distracting the general look of the page. Therefore the not inverted version is good for bright page designs, while the inverted one would be OK for dark page designs. Maybe automatic switching and/or option to set which one to use? Regarding the color of the inverted one, a good compromise could be using goldish yellow and magenta like colors (and with not so blue color but slightly bluish gray background instead): also, if the other icons are not white then colored ones pop-out more:
  13. not sure how that should look like exactly but it sounds good to me ? Would it mean that we have to click twice to see one of them? First a click on the arrow next to the class name, after that another click on either debugInfo or PW object? Or maybe you "extend" debug info and PW object gets injected into it? Either way, I think it would be nice to see the id of a Page object without clicking on anything, somewhere between the class name and the arrow. Is that possible?
  14. Depends on how you look at it ? Strictly speaking it was a Notice, for sure. However, it turned out that it was also a "copy/paste error"... ?
  15. Great looking site builder, thanks for sharing the screenshots too! Personally I do not like stuffing too much code into the database but a page/site builder can only do that. However, I guess there are loads of folks out there who definitely like to use such setups. Would it be possible for you to share the site specific global LESS/SCSS code? I would love to see how you did it under the hood.
  16. +1 I don wanna reinvent the wheel ? but even free ones should be used as starting points only and most importantly they must look like one family, so that is where most efforts should be put into (besides pleasing the eye, of course...).
  17. I can do it on a one-by-one basis. Not too much free time these days but if we are not in a hurry... ?
  18. Sounds great, just one question: how will you decide which "warning color" to use, orange vs red? I guess red should not be used for warnings at all. On the same account: "something else that you should be aware of" will be "fail / error / you-MUST-be-aware-of", right?
  19. There is one big issue with page builders: working with them can still be time consuming depending on the use case, quote: source: https://wordpress.org/support/topic/i-was-really-ready-to-give-this-a-good-shot/ https://wptavern.com/gutenberg-plugin-garners-mixed-reactions-from-new-wave-of-testers Being a designer I can cope with any page builder for sure, but lots of editing tasks are even more time consuming that way. A page builder and a rich text editor both have their shortcomings and strengths, none of them is superior to the other. For example, my current clients would have a hard time working with page builders, as they only need simple RTE features and do not want to "learn more than that" for sure.
  20. Sure, and if they do not do anything except for providing a donate button and some "transparency" then probably only the most widely used projects such as Webpack can benefit from it. Thanks for pointing it out! EDIT: I also closed the issue at GitHub.
  21. Currently ? It is just an idea, for consideration which might be worth evaluating...
  22. I see. In an effort to help, I updated my signature: Please don't forget to give a star at GitHub to the best in the ProcessWire world: ProcessWire, Tracy Debugger and AdminOnSteroids. Anyone not using a signature just yet might want to copy me ?
  23. Hi, I've just read about Open Collective: https://wptavern.com/new-backyourstack-tool-drives-financial-support-for-open-source-projects ProcessWire or the top 3 (or 4?) most popular ProcessWire modules might be able to utilize it. I opened a "request": https://github.com/processwire/processwire-requests/issues/218 Top modules: https://weekly.pw/issue/202/ Tracy Debugger by @adrian AdminOnSteroids by @tpr FormBuilder and ProCache by @ryan
  24. Hello, I have something similar I hope you can adapt it to your needs. Mine is for user templates: <?php //adds a button to the end of the user edit page: $this->addHook('ProcessPageEdit::buildForm', function (HookEvent $event) { $current_page = $event->object->getPage(); if ($current_page->template->name != 'user') return; // this button is for the user edit page only if (empty($current_page->user_family_name)) return; // custom field is not yet filled in, which means the new User has not been saved but still being edited in the admin $id = (int) $current_page->id; if ($id != 0) { if ($current_page->hasRole('mycustomrole')) { $href = createLink($current_page); // this is a custom function to be implemented, it must generate and return the required URL $field = $this->modules->get('InputfieldButton'); $field->attr('class', $field->class . " my-custom-css-class-if-needed"); // this is just opitional, I left it here as an example $field->attr('value', 'Copy URL to clipboard...'); $field->attr('data-clipboard-text', $href); // data-clipboard-text is needed by https://clipboardjs.com/ $field->attr('href', ''); // $href $event->return = $event->return->append($field); } } }); The copy to clipboard action is performed by https://clipboardjs.com/ which can be loaded by the admin using various techniques or free modules (such as AdminOnSteroids or Admin Custom Files) or one can simply put this line into config.php: $config->scripts->add($config->urls->templates . "clipboard.min.js"); where clipboard.min.js is in the templates directory, for example. EDIT: I forgot to note that the hook goes into init.php
  25. Tough question ? Have you seen this module? Edit: or this one as another related alternative:
×
×
  • Create New...