Jump to content

bernhard

Members
  • Posts

    6,268
  • Joined

  • Last visited

  • Days Won

    314

Everything posted by bernhard

  1. Thx teppo, I'm not sure if it was me. I never got any further than testing WireFrame. I think I don't have it in any of my projects so it's out of my head and you can ignore my request if there is still something left ?
  2. If you do some testing note that it's really easy to add custom markup to any inputfield via hook: <?php $wire->addHookBefore("Inputfield(className=InputfieldCKEditor)::render", function($event) { $field = $event->object; $id = $field->id; $field->appendMarkup = "<script> \$li = $('#wrap_$id'); console.log(\$li); </script>"; }); Looking forward to your results ?
  3. I still don't get what you are looking for. I thought I understand your need: Making the process more standardized and easier for non-devs meaning more click click instead of writing code. That's what I tried to solve with my proof of concept module. But you said "that looks great" in your first post and then turned around and it does not seem to be what you are wanting... Eh nothing, all is ready, we have even more with JWT implementation. It's just missing a function which return the pages tree. Something like less than 10 lines of code. This question was targeted to @wbmnfktr to better understand him. When we where talking about easy json feed the very first time my answer was: Url hook + findRaw + json_encode... ( https://processwire.com/talk/topic/19112-module-page-query-boss/?do=findComment&comment=221874 ) I don't agree on this one. I have not tried the module (because I have not had the need), but it looks complicated to me. Something that definitely would take longer than 2 min even just to understand how to set it up. That's why I built my module - super simple to setup, no code necessary. But it is still not what @wbmnfktr is looking for, so I'm confused and it feels like we are going in circles...
  4. You can increase the number of "rows" in the field's settings (input tab). Is that what you are looking for?
  5. Haha yeah I'm a fan of chaining ? eg https://github.com/baumrock/rockseo Thx for clarifying. Just wanted to make sure I'm not missing anything ?
  6. Nice, thx for sharing the results ? Though I'm still not sure why RockFinder helped here? I think it would be the same to do this: <?php $end = strtotime( "2021-02-27 23:59:59"); // loop $database->beginTransaction(); $ids = $pages->findIDs("template=receipt, numChildren=0, created<$end, limit=5000") foreach($ids as $id) $pages->delete($pages->get($id)); $database->commit();
  7. RockFinder does not bring you any benefit here as it relies on the native findIDs. Have a look here:
  8. Got hit by this as well. I'm having role "admin" for managing the website (aka webmaster role) I want the users of group "admin" to be able to create other users with role "admin", but the role is blocked: --> you are not allowed to change this role I've also tried to add an "user-admin-admin" permission and assign that to the "admin" role. Nothing. How do you handle that? Am I missing something?
  9. Yeah that's what I tried, but it does not work here. But even if it did I think it would not be the best solution as this is quite hidden and not obvious to users that don't know PW. Just hiding notifications is not an option as they have a purpose. I haven't looked into the implementation of SystemNotifications yet as I wanted to double check if I'm missing anything here (similar to the double click feature of deleting all files of a files field).
  10. I'm using Session Handler DB + System Notifications on a site and I get lots of notifications when I log in from time to time. Is there any way to close all notifications at once? I have to click 75 times to close 75 notifications... This is really annoying because the notifications persist through the session until I close them.
  11. I'm talking about the core fieldtype. I don't have the external decimal module installed.
  12. No matter what I try I end up with an empty decimal field. I tried inputting 1.5 as well as 1,5. I also tried both settings for the input-type (text/number). Decimals is set to 2. I can only store integer numbers. Could you please try that so that I know if I should invest more time? Thx!
  13. Or you use RockHeadless ? Referencing to the other post...
  14. v0.0.4 adds callbacks to easily define the returned values of your selected fields: <?php // in site/init.php $rockheadless->return('rockblog_cover', function($page) { $images = $page->rockblog_cover; if(!is_array($images)) return; $file = $images[0]['data']; return "site/assets/files/{$page->id}/$file"; }); I think this should make it really simple to get a quick API while still being easy to customize.
  15. Well... what you are discovering is exactly why I built RockFinder. The first version was built before findRaw existed but I'm still using the current version RockFinder3 for RockGrid because it does all the things you mentioned properly with an easy to use syntax.
  16. What about this? https://github.com/baumrock/RockHeadless
  17. Why? Were you not aware of RockFinder? Sorry, OT ?
  18. Thx @wbmnfktr that helps So what is missing with the AppApi module? I've never used it, but I like the topic and it sounds like it would be fun to build a module for it... so I'll try to understand better. How do the other systems handle access control? How should that be done by PW? On a template level? On a field level? I understand that. I'm a huge fan of standardizing things ?
  19. No - I was just looking at the old version and did not instantly understand it, so I thought I'd change it a little bit. But there are still 1000 other options ? In terms of performance I don't think that there is any noticable difference between both versions.
  20. Actually I'd probably do it this way today (refactoring again ? ) <?php $this->addHookAfter('ProcessPageList::find', function (HookEvent $event) { $event->return->each(function($p) use ($event) { if($p->template == 'admin') return; // keep if($p->template == 'basic-page') return; // keep if(!$p->editable() AND !$p->addable()) $event->return->remove($p); }); });
  21. Same here. I feel like we have everything and try to understand what is missing and what others to differently (better)...
  22. Not sure if I'm missing something... No module, 2 lines of code: $restaurants = $pages->findRaw("template=restaurant", ['id', 'title', 'modified']); $json = json_encode(['restaurants' => array_values($restaurants)]);
  23. I'm still curious how that "out of the box" would look like and how other platforms are working in that regard... As a detailed step by step use case.
  24. This is what I meant: I install Forestry on my host Then I create Template XY Then I add fields X, Y, Z to the template Then I add Module X to get JSON Feed Then I create a Frontend and access this feed Steps 4+5 are missing in ProcessWire
  25. Could you show the exact steps that are necessary to get what you want when using one of these systems? And list what you are missing with PW and how in your opinion it would make sense to be?
×
×
  • Create New...