Jump to content

fruid

Members
  • Content Count

    355
  • Joined

  • Last visited

  • Days Won

    1

fruid last won the day on November 5 2020

fruid had the most liked content!

Community Reputation

27 Excellent

About fruid

  • Rank
    Sr. Member

Recent Profile Visitors

725 profile views
  1. I'm trying to use Semantic UI on the frontend. I would appreciate some advice. Should I install the node.js NPM? I've never done that before. I ask because I started with simply using the "framework", components etc. i.e. just including the css and js files in the <head> tag which works fine for the most part, but I cannot use custom themes with this package. Any further help with that, that I research, always points towards using i.e. installing NPM. But then, I don't even know if that is possible with PW. Thanks for help!
  2. I did. In the module's settings I put the Identity Token (generated in https://www.paypal.com/businessmanage/preferences/website as suggested by paypal.com) and tried with API endpoint https://api-m.sandbox.paypal.com (as suggested by paypal.com) and https://www.sandbox.paypal.com (as suggest by this module). I entered my paypal email address, default currency (EUR) and location (AT). I put the code from the README file on the template and navigated to the page with that template plus get variable www.domain.tld?step=process However: if (! $response) { throw new \ProcessWire\WireException("Couldn't get access into "); } is what I get. Thoughts?
  3. apologies for the misconduct here in the forums, this happens when I don't start a new thread right away but actually start with researching existing posts to begin with, which I like to think to always do thouroughly. @Jan Romero as a matter of fact I do have ProFields Table and it is dope indeed, but like I mentioned in this thread here, I (and maybe others) would prefer the module I'm building and its dependencies to be free of charge, considering the still quite basic requirements it has to the tableish nature of the inputfield. I also use Tracy Debugger, but I'm not always sure how to use it though. I agree a table field is far more complex than say a checkbox field, yet it's still what is used to explain how to build a custom field, i.e. FieldTypeEvents, and my requirements not much different either, so I thought I give it a shot. Besides, I learn a lot more by doing than with too much theory. But maybe this is more long term project after all. Thanks so far everybody.
  4. I disagree, it is actually that hard : D All I'm trying to do is re-use the FieldTypeEvents/InputfieldEvents to build a sort of "week" inputfield, each table cell reprenting a individual checkboxes. So instead of 3 columns, it would have 7 (1 for each weekday) + 1 on the left. So I amended where those subfields are defined accordingly. However, now I get Call to a member function hasPermission() on null in wire/core/Modules.php:1389 Not sure if that tells anyone anything. Then I need to circle back to my db backup. Also, maybe a bit confusing in this particular case: Is $event always arbitrary, I mean coicidentally the name of the variable? Because you also have $event when using hooks which you can't really change, so need to be clear on this if this is prone to being confused.
  5. thanks @bernhard, it helps I'm still wondering though, as I want to create a custom fieldtype inside a custom module, should one module do both? or should one module require/install the other, i.e. two separate .module.php files or one .module.php file? Also, if I use two .module.php files, could both files be in the same module folder or separate? In my understanding, two folders would mean two modules, but I might be wrong. thanks for advice!
  6. When I create a new page, the name is auto-derived from the page's title. Can I simply skip that for a specific template so it stays empty and has to be entered manually?
  7. maybe a stupid question, I'm far from being an expert, but what's so exciting about avoiding the db in the first place? Aren't inputfields and inputfieldtypes not supposed to do nothing else than just that: insert data to the db? In other words, if you don't insert/input data in the db, why even call it inputfield? I'm trying to create an actual inputfield (that inserts data in the db) that I would use within a module I'm building. No sure if I would handle this separately or all in one module. I'm trying to start with FieldTypeEvents but it's indeed quite complex. I never know if what ever bit of code I'm looking at concerns the admin interface or the frontend. Also don't know why there are two files: FieldTypeEvents.module and InputfieldEvents.module. That goes for other Fieldtypes as well, I guess all of them.
  8. FieldTypeEvents is a separate fieldtype module. I understand it's just an example of how to create custom fields. I'm not sure though how that would fit in here – would I create that custom field that I need inside the module itself? Or would it also be a separate module that my custom module requires/installs? It actually seems quite basic in its functionality and comes quite close to what I need, but the code looks quite complex to be honest.
  9. of course, need to un-install and re-install, then it works. (I feel so stupid). Thanks
  10. ParseError syntax error, unexpected ''/templates/'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' I don't get it EDIT: I understand it needs to be $this->files->copy(__DIR__.'/templates/', $this->config->paths->templates); but still doesn't copy
  11. and a follow up question: if I do something like $src = $urls->site.'modules/myModule/templates/'; $dst = $urls->templates; $move = wireCopy($src, $dst); inside init() or ___execute() It of course asks for what is $urls. How would I pass it the $urls variable because if I just put it in the brackets, it's too few arguments where it's called, which I don't know where. Am I misunderstanding?
  12. thanks @ukyo I guess it works now, you're clearly in the user list. thanks for the tipp, what's the name of the FieldType? A sort of "range" input field that lets you drag with the mouse from start to end is cool for a month or year view but if you're trying to select multiple weeks over a a period of months, I reckon it's easier to just enter the week number and year. At least I couldn't find any time picker that makes this task easier, not in flatpickr nor anywhere, maybe something like drag or click the week number on a year calendar. And the other thing is entering times. The time input functionality from flatpickr is not much of use and dragging hardly could be an option since you would want to enter time slots and not so much ranges. So just having a simple text field is just as straight forward and probably more flexible.
  13. I actually have a very specific issue that I'm stuck with… How do I make the module create the template files, not just the templates in the database via API but also the corresponding php files in the webcontent when being installed?
  14. OK so I was looking for a module for weekly schedules, available time slots and bookings thereof. But all I could find is other people looking for a module like that. So I gave it a try. It's not a module yet but it will be soon, for now it merely is some templates and some fields. I gave ryan's ProcessHello module a try which makes module development much easier but I'm still not sure where to begin. How and where to create templates, with fields and repeater fields. Also, this setup requires FieldTypeTable which is a pro module so I'm not sure everyone will appreciate this requirement. I guess there could be an easier way? The tableish requirements are quite basic. https://foobar.roofaccess.org/userlogin/ if you have time and feel like it, you can just create a fake account and play around with it a bit, I hope it's somewhat self-explanatory. Should the module do more? or less? I welcome any feedback!
×
×
  • Create New...