Jump to content

bernhard

Members
  • Posts

    6,671
  • Joined

  • Last visited

  • Days Won

    366

Everything posted by bernhard

  1. 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...
  2. yes: But it works if I do what the error says: Calling $pages->of(false) before:
  3. I cannot confirm that. Everything is working as expected: ProcessWire 3.0.114
  4. 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
  5. 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 ?
  6. Using the fuctions API would be one reason ??
  7. awesome, thx ?
  8. 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.
  9. 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?
  10. 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)
  11. 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.
  12. I let my forms module do that ? it uses the nette forms framework for proper sanitisation (both on frontend and backend)
  13. 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 ?
  14. 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.
  15. 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?
  16. 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.
  17. 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
  18. 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:
  19. Thx @jmartsch and @Beluga but I get a vertical scrollbar on all my RockGrids after the update: Do you also get this scrollbar?
  20. 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
  21. 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.
  22. 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?
  23. Do you want to develop something on your own? Do you want to hire someone that develops it for you? Do you want to ask @kongondo if it is possible to add that feature to his module when you purchase it? What are your skills? What is your level of experience with processwire? What is your timeframe? What amount of options do you have (thousands of options or just a few)? etc. --- The more information you provide, the better the answers will be. Edit: Sorry, didn't read the quoted message carefully enough. But still some more information will help in providing better answers ?
  24. Are you talking about something like this?
  25. I'd recommend you install Adrian's awesome tracy debugger module. It helps a lot in all kind of situations - maybe also in your current one. It might throw a more meaningful error. Or at least it makes it very easy and comfortable to run some code snippets. The panel is called "console". You can just paste in some code, run it, dump variables, log messages etc. Did you try to rename your 1029 folder via FTP to 1029_bak and see what happens? Can you move your site to another server and see if that makes a difference?
×
×
  • Create New...