trowtlip Posted November 21, 2018 Share Posted November 21, 2018 I like the idea of processwire. I grabbed the login register module, which covers everything needed for login, registration and password reset. Next I need to expand the module to have password change, password reset, etc on separate linked pages, along with adding a couple more member/profile sections that would be on separate pages. I don't want everything on one continuous page. I'm thinking child pages here, but I'm having a terrible time separating the components in the login/register module. I'm now trying to split out the functions of the login/register module, but it's turning into almost separate modules with some duplicate code. With the time spent so far, it's coming to the point that writing some from scratch would take less time. Processwire is far more sensible than Wordpress, but maybe I took a wrong turn by using the login/register module. It almost seems like it's only partially done in the manner of Processwire. Link to comment Share on other sites More sharing options...
elabx Posted November 21, 2018 Share Posted November 21, 2018 Could you give us a more concrete code example of what you are trying to do? Maybe you can reuse the module functions and you are rather trying to extract the functions from the module into your template files. Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted November 21, 2018 Share Posted November 21, 2018 Hey @trowtlip! I like the idea of ProcessWire also! First, could you please give a link to the module you used. There are a few of the similar ones. Link to comment Share on other sites More sharing options...
trowtlip Posted November 21, 2018 Author Share Posted November 21, 2018 It's this one: https://modules.processwire.com/modules/login-register/ I'm not sure what I'd point out in code specifics. I'm analyzing the best way to break it up or make available the common methods if I use them in different templates/pages, but it's not the place I envisioned spending this much time. Maybe I was hoping for a more recommended or usable module. :-0 Link to comment Share on other sites More sharing options...
Robin S Posted November 21, 2018 Share Posted November 21, 2018 3 hours ago, trowtlip said: Maybe I was hoping for a more recommended or usable module. I haven't yet had the need to work with the Login/Register module but given that it's by Ryan, lead developer of ProcessWire, I think it's safe to say it's a well-made module that is very ProcessWire-y. Login/Register is a relatively recent module, and I believe it's intended for scenarios where you want bog-standard login/register features without having to think much about it. It's probable not intended for scenarios where you want specific custom behaviour. In those cases you would use the PW API to code exactly the features you want, which is what people did for all frontend-user needs before Login/Register was released. Here is a forum topic and some helpful gists from @Soma that can get you started with the PW forms API: PW simple form via API:https://gist.github.com/somatonic/4027908 Create a page edit form on frontend using PW API and fields from the template of the page:https://gist.github.com/somatonic/5011926 And of course Login/Register uses the PW API so study that for sure. Link to comment Share on other sites More sharing options...
trowtlip Posted November 26, 2018 Author Share Posted November 26, 2018 Thank you Robin; that is very helpful! Much better than trying to break login/register apart. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now