Jump to content

benbyf

Members
  • Posts

    818
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by benbyf

  1. RT @THECUBELondon: if you are in #Bristol + looking for #coworking, check out this survey for a new space in the city https://t.co/m8MKdL2e…

  2. RT @mikebutcher: For just 3 minutes, experience what it's like to use the phone of a refugee https://t.co/ljxsvsZQey #techfugees

  3. RT @jesslynnrose: Looking for a female London game dev who might be interested in being connected to a lovely student needing mentorship!…

  4. This is genius, thanks @horst. Also thanks for all the tuts jokes... I never thought of myself as a backend guy so hope they're up to scratch and I always comments. @kongondo this is great http://kongondo.github.io/ProcessWireAPIGen/dev/class-Field.html thanks.
  5. Finding it quite fustrating work with fields from a module, I cant seem to find any good docs or forum threads. For example I'm making a new field on install of my module, but ideally I would like to know how to set flags, default value, max- min etc for that field but it's not obvious to me. All I can mange so far. $f = new Field(); // get a field type $f->type = $this->modules->get("FieldtypeInteger"); $f->name = $this->fieldName; $f->label = 'Publish Page later'; $f->save(); // save the field I'm finding this elsewhere with integrating with the admin, but not at all with the API itself which has great documentation. Any advice, guidance would be great!
  6. RT @TeddyDief: "Black Gold" by @conormn: beautiful surreal slice of life. Take 5 min to play this https://t.co/JMMCGIi7Ct https://t.co/PlrQ…

  7. How does one set a new field's global flag in a module? i.e. // create new field object $f = new Field(); // get a field type $f->type = $this->modules->get("FieldtypeCheckbox"); $f->name = $this->fieldName; $f->label = 'Publish Page later'; // somehow set flag to global??? $f->save(); // save the field
  8. Thanks! Would you mind adding this in brief as a comment to the tutorial? I'm sure it'll be useful to people.
  9. http://webdesign.tutsplus.com/tutorials/a-beginners-introduction-to-writing-modules-in-processwire--cms-26862 Based on work from here:
  10. @tigerchops and my first #microbit game CLICK BATTLE written in Python https://t.co/PW7bNTtGnQ https://t.co/O6IGZXvwQ5

  11. this is seriously awful! Think about the planet, people and profit, NOT just profit you massive dick holes. https://t.co/eykfk5HKnT

  12. I raised $13M from @theaivc for mobile 5.0 Autonomous Car for quidditch allstars! Close your round with https://t.co/N8lAfi3QE6 #theaivc

  13. I think composer and dependency mamgement in general is a little out of scope for this series of module creation tutorials, looks interesting though, I've never felt the need for this myself mostly working on small projects and happy using profile exporting and wireshell for different installing / exporting tasks.
  14. RT @NASA: A 3D printer on @Space_Station reduces the need to send replacement parts & tools from Earth https://t.co/bvzm2dB1io https://t.co…

  15. Ok been trying to take on everyones comments. In doing so I've split repos into beginner and intermediate. https://github.com/benbyford/PW-starter-modules/ https://github.com/benbyford/PW-intermediate-modules In doing so I can add to them with simple and more complex modules as and when I create them (and learn a new skill). The basic ones are currently super basic, so could probably do a couple more and then stop of crucial things to learn in modeul making. Any more suggestions welcome.
  16. Is there any built in way of disregarding the time on output in a datetime field is the time was orginially set? Ive gone from using the date only to using both date and time, but any timeless pages default to outputing 12:00am which looks odd having many pages listed in this way. Any thoughts would be welcome
  17. I've updated the my modules replacing HotUserSwap with simple TextformatterFindReplace instead. I'm going to work on some field types next
  18. anyone happen to have any ideas for inputfields that we havent already got??
  19. Hi Horst! Thanks for you code amends, will alter now. I totally agree with you, the third module not really beginner level and needs a heck load more work on it before anyone was to actually use it. The security aspect I'm looking at next and thanks for those links. Bar the first module, I was trying to make modules that didn't already exist that would be useful and interesting for me to make and had aspects I could teach. If you have any more suggestions for a third module whcih doesn't already exist then I'm all ears. Thanks,
  20. Hi! I've been making my first modules and I've created three so far to help me learn. I would love so feedback or pull requests for improvements as I hope to write a tutorial about my work soon. In particular the third modules isn't very finished. git: https://github.com/benbyford/PW-starter-modules/ HelloUserYouSaved - adds message {your user name, page saved} in admin when a page is saved. This module shows how to implement a basic module, get and use variables, create a message in the admin RedirectAdminPages - redirect specific user role to a custom page set in the module config. This module shows how to implement module configuration, using variables saved in the admin, redirecting a user using session->redirect() HotSwapUser - Swap user on the fly in the admin or frontend of your site This module shows how users can be used in a module how to set a user permission how to install / uninstall something within your module how to create a function that can be output in the frontend of your site.
  21. A bug in fMRI software could invalidate 15 years of brain research https://t.co/HLJF0ohfUZ #via @ScienceAlert

  22. Hi, Can't for the life of me work out this puzzle: I have a date field being rendered on a site, when I'm logged in I get this format echoed: Friday, 8 July 2016, but when im logged out I get this timestamp: 1467932400 Anyone found this before?
  23. Another great day teaching at @DecodedCo great apps everyone. https://t.co/4bBwdqJ9iC

  24. RT @GreatAnalytics: 10 Deep Learning Terms Explained in Simple English https://t.co/ndhiwZkmCs https://t.co/8Z4JWfQjEg

  25. No worries, I'm a frontend guy by trade so mostly functional, not class / object based programming. Hence, modules in PW or coding langauges generally are a new and obscure thing for me. Having said that, there must be "best practises" and easy ways of intereacting PW admin and site frontend etc using modules, I'm just trying to complie the resources for my own learning and to help others with future tutorials I'm hoping to write. The PW documentation is good, but when it comes to a beginners guide to modules it massively falls down
×
×
  • Create New...