Jump to content

bernhard

Members
  • Posts

    6,629
  • Joined

  • Last visited

  • Days Won

    358

Everything posted by bernhard

  1. Hey @adrian thx again for the great panel settings shortcut. It already saved me from a lot of clicks ? For example today I added some todos in my code and activated the todo-panel. Then I had far too much todos indexed (from AOS and other modules) and I just clicked on the settings tab and added them to the list of not-to-index folders. Works great! One thing I noticed is that when I reload the page after adding a folder to the ignored-list the Todo-Panel was not activated any more. I activated it via the checkbox in the panel selector and clicked "sticky". After saving the module's settings this setting was gone. Is this a bug? Or can I activate this panel in another way? Thank you!
  2. Is there a module to pick a file from a given directory? I want to pick a template for creating a PDF invoice and thought it would be nice to have the option to choose from different templates located in a folder somewhere in the sites folder. It's not hard to add a field to the edit form, but if there's already a ready solution for that I'd prefer that of course. I'd also combine it with a preview like I did on my first module: If nobody knows of an existing solution I'll go ahead and build one ?
  3. nobody else having this problem? ?
  4. Another snippet promoting the functions api ?
  5. That's why I asked this question instantly: ? But I'm quite sure a custom script for the table field is the better solution anyhow ?
  6. absolutely awesome! thx! already using it ?
  7. 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")
  8. 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!
  9. 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.
  10. 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...
  11. yes: But it works if I do what the error says: Calling $pages->of(false) before:
  12. I cannot confirm that. Everything is working as expected: ProcessWire 3.0.114
  13. 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
  14. 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 ?
  15. Using the fuctions API would be one reason ??
  16. awesome, thx ?
  17. 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.
  18. 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?
  19. 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)
  20. 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.
  21. I let my forms module do that ? it uses the nette forms framework for proper sanitisation (both on frontend and backend)
  22. 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 ?
  23. 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.
  24. 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?
  25. 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.
×
×
  • Create New...