Jump to content

bernhard

Members
  • Posts

    6,674
  • Joined

  • Last visited

  • Days Won

    367

Everything posted by bernhard

  1. Thx @AndZyk for the Intelephense hint! Really awesome tool I was looking for for quite a long time ? Ever needed the correct collapsed state for one of your inputfields? No need to head over to the api docs any more ? and even with smart search (note that I typed "colloc")
  2. Really great addition! Thank you! I wonder what others think of having the icon left instead of right. I think it'd be an improvement. Maybe if others think the same it would be worth the effort. If not, I'm also happy to have it on the right side now ? Thx again!
  3. That's not true, please could you prove your statements with screenshots or the like and not just tell "it's not working"? And the current DEV: Recursive: You're welcome ? Yep, no reason not to use it IMHO.
  4. Not by default but it can quite easily be done (in this case it's an options field, but it could be the same with a page reference): You can even do styling based on the input: I don't understand. The user can only enter values once for each property: http://jsfiddle.net/baumrock/c7gnthjm/ The biggest problem with handsontable is changing options. At the moment it works by a numbered index and not by key/value pairs. That would be an improvement for the future...
  5. yes: But it works if I do what the error says: Calling $pages->of(false) before:
  6. I cannot confirm that. Everything is working as expected: ProcessWire 3.0.114
  7. Did you read my mind or was that always there? I wanted to post this request yesterday but found all shortcuts in the docs... then I thought why bother adrian again with something that is already there ? awesome! thx
  8. I was not totally serious and it was more targeting @Jonathan Lahijani and meaning something like: Why not use the functions api when it is only one setting away and does not need any modifications to any module? $config->useFunctionsAPI = true, that's it. Of course that's everybody's own decision, but I also started using it quite late and now I really like it. It makes things easier, shorter and better to read: public function executeTransactions() { $form = $this->modules->get('InputfieldForm'); $f = $this->modules->get('InputfieldRockGrid'); $f->name = 'transactions'; $f->label = 'Overview of Transactions'; $f->ajax = true; $form->add($f); return $form->render(); } I also prefer the array syntax now for adding fields: public function executeEfforts() { $form = modules('InputfieldForm'); $form->add([ 'type' => 'RockGrid', 'name' => 'efforts', 'label' => 'Overview of Efforts', 'ajax' => true, ]); return $form->render(); } To answer your question: If you've ever come across errors like "$pages/$modules/$users is not defined" or the like I'd suggest trying it out ? Using VSCode + Intelephense I also get very nice code completion, so I don't see any reason not to use it. Only thing bothering me is when I am developing public modules I need to remember not to use the functions API as I can't assume everybody is using it. that's a lot worse IMHO ?
  9. Using the fuctions API would be one reason ??
  10. awesome, thx ?
  11. True! You could also use The handsontable field is not perfect in some regards, though. Changing properties lateron can be problematic and content is also not queryable by selectors.
  12. Backup your data. Look at your table "pages" and sort by page status. I guess you'll find some pages having status 13x.xxx (cant remember the exakt code, it's something over 130k). try to set page status to 1 and see if that make a difference. Where do you clone your page? In a module? Inside Tracy? In a template?
  13. Hm. That's a little tricky ? How many properties do you have? Are they editable by your users? Modifying your table with javascript would be a good option I think. But also a little bit of work. Maybe functional fields could be a solution? (never tried them, so I'm not sure)
  14. Looks like somehow something is corrupt. But I don't have any idea why and how to fix it. If it works on a clean install there is something else causing this problem. Most likely there's a hook somewhere that does additional things on Pages::saved or Pages::saveReady; This can be either in ready.php or in any of your modules. I'd start by commenting out all the content of ready.php, then disabling all modules one by one (by adding a dot in front of the folder name). If anything of that works you can begin to narrow it down in that area.
  15. I let my forms module do that ? it uses the nette forms framework for proper sanitisation (both on frontend and backend)
  16. Actually I didn't forget to mention it but I think/thought that it might not be helpful in this case. The performance boost comes from not loading pages into memory and this is especially helpful when you want to show data as a grid. The query itself is a regular PW pages->find() query with lots of joins, so I'm not sure if that would make a difference in his szenario. I far as I understood his problem is the other way round: They do not need to display lots of pages in one grid, they do need to execute lots of different selectors in lots of different places (custom widgets, boxes or whatever you may call them, with custom data). But yeah, you are right. It might be worth a look anyhow ?
  17. IMHO the uikit docs are somewhat hard to read if you are not familiar with them. I've asked my design-partner a lot of such "dump" questions - everything was there, I just didn't see it as well ? They are more of a reference than docs. Listing all components and all options, but to know how everything plays together you need some experience and practise.
  18. Hi Pascal, sounds like a very interesting project! This might be an interesting read for you (I have to admit that I didn't understand correctly what they meant by "community" and "dynamic"): I'm just curious how you manage concurrent page edits here? Do you use some locking technique?
  19. ok thx just pushed v0.0.12 including aggrid v19.0.0 seems that the scrollbar thing is an issue with aggrid itself and has nothing to do with any of my modules so i'm fine with it. grids can be tricky and i guess they have a good reason why they changed to flex and why the scrollbar is there (i guess it makes other things a lot easier/better). @Beluga I would be interested in how you are using RockGrid and what you think of it so far ? PS: Just added the module to the modules directory.
  20. I also get it on Firefox. Which version did you try exactly? the single-js version or the one with separate css? I also tried it with Reno + Uikit... no difference
  21. This one keeps annoying me, so I wonder if I'm the only one having this problem: Whenever I mention someone in the Forum with the @ feature the editor somehow breaks and does not work properly any more. I just can't enter new paragraphs any more. Shift+Enter still works (making 2 <br> instead of one new <p>) but sometimes the only solution is to reload the window... It seems that this problem also occurs when I click on the name instead of selecting it with the keyboard (arrow down, then enter or tab). Can anybody confirm this? Or is there a hidden trick to make it work? Thx! --- Testing: Selection with keyboard + Enter @ryan // worked Selection with keyboard + Tab @ryan // does not work any more. Don't know why... maybe because I removed the @ryan mention part?! I'll reload the window Next try after reload (keyboard + tab): @ryan // worked @ryan This time I used the mouse to click on it and got this error:
  22. Thx @jmartsch and @Beluga but I get a vertical scrollbar on all my RockGrids after the update: Do you also get this scrollbar?
  23. Just finished the docs for my custom smart filter - if anybody wants to get an idea what is possible just have a look here: https://gitlab.com/baumrock/FieldtypeRockGrid/blob/master/plugins/filters/smart.md
  24. OK, then I can't think of any quick and easy hack, sorry. I agree that checkboxes might be easier for the eyes, but I don't think that's worth the effort.
  25. You're welcome, I don't know of a quick built in way, but sometimes it's easy to solve such things with little hacks - especially when you are not dealing with huge amounts of data. Can you provide an example of values that are in the first pagefield and that would be in the second. Like ryan did in his example: Country / City What kind of data do you have? Are the values of the checkboxes dynamic or do you set them manually?
×
×
  • Create New...